Jpp
18.1.0
the software that should make you happy
|
Auxiliary classes and methods for 2D geometrical objects and operations. More...
Classes | |
class | JAngle2D |
Data structure for angle in two dimensions. More... | |
class | JAxis2D |
Axis object. More... | |
class | JCircle2D |
Data structure for circle in two dimensions. More... | |
class | JDirection2D |
Data structure for direction in two dimensions. More... | |
struct | JEigenValues2D |
Eigen values in 2D. More... | |
class | JCenter2D |
Center. More... | |
class | JConvexHull2D |
Auxiliary class for convex hull determination in X-Y plane. More... | |
class | JSmallestDistance2D |
Auxiliary class for determination of smallest distance between pair of 2D points. More... | |
struct | JOmega2D_t |
Base class for direction set. More... | |
class | JOmega2D |
Direction set covering (part of) circle. More... | |
class | JPosition2D |
Data structure for position in two dimensions. More... | |
class | JRotation2D |
Rotation matrix. More... | |
class | JRotator2D |
Rotation set. More... | |
class | JSegment2D |
Line segment in two dimensions. More... | |
class | JVector2D |
Data structure for vector in two dimensions. More... | |
class | JVersor2D |
Data structure for normalised vector in two dimensions. More... | |
Typedefs | |
typedef std::vector< JRotation2D > | JRotator2D_t |
Type definition of rotation set. More... | |
typedef std::pair< JPosition2D, JPosition2D > | JSegment2D_t |
Type definition of line segment in two dimensions. More... | |
typedef std::pair< double, double > | JRangeX |
Type definition of range along x-axis. More... | |
typedef std::pair< double, double > | JRangeY |
Type definition of range along y-axis. More... | |
Functions | |
void | randomize (JPosition2D *p) |
Randomize position. More... | |
template<class T > | |
bool | getCCW (const T &a, const T &b, const T &c) |
Check sequence of three points in X-Y plane. More... | |
template<class T > | |
double | getArea2D (T __begin, T __end) |
Get area of a convex polygon. More... | |
template<class T > | |
bool | inside2D (T __begin, T __end, const JVector2D &pos) |
Check if given point is inside a convex polygon. More... | |
template<class T > | |
bool | inside2D (T __begin, T __end1, T __end2, const JVector2D &pos) |
Check if given point is inside a convex polygon. More... | |
bool | getCCW (const JVector2D &a, const JVector2D &b, const JVector2D &c) |
Check sequence of three points. More... | |
Variables | |
static const JConvexHull2D | getConvexHull2D |
Function object for convex hull determination. More... | |
static const JSmallestDistance2D | getSmallestDistance2D |
Function object for smallest distance determination. More... | |
static const JVersor2D | JVersor2X_t (1, 0) |
unit x-vector More... | |
static const JVersor2D | JVersor2Y_t (0, 1) |
unit y-vector More... | |
Auxiliary classes and methods for 2D geometrical objects and operations.
Type definition of rotation set.
Definition at line 23 of file JRotator2D.hh.
Type definition of line segment in two dimensions.
Definition at line 29 of file JSegment2D.hh.
typedef std::pair<double, double> JGEOMETRY2D::JRangeX |
Type definition of range along x-axis.
Definition at line 23 of file JVector2D.hh.
typedef std::pair<double, double> JGEOMETRY2D::JRangeY |
Type definition of range along y-axis.
Definition at line 24 of file JVector2D.hh.
|
inline |
Randomize position.
p | pointer to valid object |
Definition at line 28 of file JGeometry2DTestkit.hh.
Check sequence of three points in X-Y plane.
a | 1st point |
b | 2nd point |
c | 3rd point |
Definition at line 36 of file JGeometry2DToolkit.hh.
Get area of a convex polygon.
__begin | begin of data |
__end | end of data |
Definition at line 280 of file JGeometry2DToolkit.hh.
Check if given point is inside a convex polygon.
__begin | begin of data |
__end | end of data |
pos | position |
Definition at line 324 of file JGeometry2DToolkit.hh.
|
inline |
Check if given point is inside a convex polygon.
__begin | begin of data |
__end1 | end of lower hull |
__end2 | end of upper hull |
pos | position |
Definition at line 360 of file JGeometry2DToolkit.hh.
Check sequence of three points.
a | 1st point |
b | 2nd point |
c | 3rd point |
Definition at line 270 of file JVector2D.hh.
|
static |
Function object for convex hull determination.
Definition at line 269 of file JGeometry2DToolkit.hh.
|
static |
Function object for smallest distance determination.
Definition at line 660 of file JGeometry2DToolkit.hh.
|
static |
unit x-vector
|
static |
unit y-vector