This class defines 2D geometric points, defined by their Cartesian coordinates.
More...
|
| Point () |
| The default constructor, returning the frame origin (0,0).
|
|
| Point (const double &x, const double &y) |
| The main constructor, creating a point from its Cartesian coordinates (Polar coordinates are not used for points in ISeeML). More...
|
|
iSeeML::Object & | clone () const |
| Description method, giving a copy of the current point. More...
|
|
void | writeTo (ostream &O) const |
| Description method, writing a description of the point into a stream: Cartesian coordinate in each dimension is written, between paranthesis and separated by commas. More...
|
|
const double & | xCoord () const |
| Description method, giving the point's first coordinate. More...
|
|
const double & | yCoord () const |
| Description method, giving the point's second coordinate. More...
|
|
Point & | moveTo (const double &x, const double &y) |
| Modification method, moving the point to a given position. More...
|
|
Point & | translate (const iSeeML::geom::Vector &v) |
| Modification method, translating the point along a vector. More...
|
|
bool | operator== (const Point &other) const |
| Equality operator between points. More...
|
|
Point | operator+ (const iSeeML::geom::Vector &v) const |
| Sum operator between a point and a vector, giving the translation of the current point along the vector. More...
|
|
Point | operator- (const iSeeML::geom::Vector &v) const |
| Difference operator between a point and a vector, giving the translation of the current point along the opposite of the vector. More...
|
|
iSeeML::geom::Vector | operator- (const Point &other) const |
| Difference operator between two points, giving the vector connecting these points. More...
|
|
double | distance (const Point &other) const |
| Various method, giving the distance between two points. More...
|
|
double | sqrDist (const Point &other) const |
| Gives the square of the distance between two points. More...
|
|
virtual bool | operator== (const iSeeML::geom::Object &other) const |
| Equality operator between geometric objects. More...
|
|
virtual | ~Object () |
| This virtual class needs a virtual destructor.
|
|
virtual const string | className () const |
| Description method, giving the object's class name. More...
|
|
bool | sameClass (const iSeeML::Object &other) |
| Method verifying that a given object has the same type (same class name) than the current one. More...
|
|
|
template<class T > |
static const T & | min (const T &a, const T &b) |
| Method giving the minimum of two elements. More...
|
|
template<class T > |
static const T & | max (const T &a, const T &b) |
| Method giving the maximum of two elements. More...
|
|
static double | sqr (const double &x) |
| Method giving the square of a double. More...
|
|
static double | mod2pi (const double &theta) |
| Method giving the angle between - (excluded) and (included), which is equal to a given angle modulo 2 . More...
|
|
static double | rad2deg (const double &theta) |
| Method transforming an angle in radian, with between -1 (excluded) and 1 (included), into its equivalent in degree, i.e. More...
|
|
static double | deg2rad (const double &theta) |
| Method transforming an angle in degree, with between -1 (excluded) and 1 (included), into its equivalent in radian, i.e. More...
|
|
static bool | isPositive (const double &x) |
| Method telling whether a double is strictly positive. More...
|
|
static bool | isNegative (const double &x) |
| Method telling whether a double is strictly negative. More...
|
|
static bool | isZero (const double &x) |
| Method comparing a double to zero. More...
|
|
static int | sign (const double &x) |
| Method giving the sign of a double. More...
|
|
ostream & | operator<< (ostream &O, const iSeeML::Object &o) |
| Modification method, writing a description of a ISeeML object in a given output stream. More...
|
|
This class defines 2D geometric points, defined by their Cartesian coordinates.
This class contains description methods giving Cartesian coordinates as well as the writeTo method, a modification method giving translation of the point, the corresponding operator as well as the equality operator and difference operators between a point and a vector or between
two points,and at last a method computing the distance separating two points.
- Author
- Alexis Scheuer.
- Version
- 1.0
- Examples
- wxGuiFwd.cpp.