Defines a 3D point. More...
#include <cadex/Geom/Point2d.hxx>
Public Member Functions | |
Point2d () | |
Constructor. | |
Point2d (double theVal) | |
Constructor. | |
Point2d (const Point2d &theOther) | |
Constructor. | |
Point2d (double theX, double theY) | |
Constructor. | |
double | X () const |
double | Y () const |
void | SetX (double theValue) |
void | SetY (double theValue) |
void | Set (size_t theIndex, double theValue) |
void | SetCoord (double theX, double theY) |
bool | IsEqual (const Point2d &theOther, double theTolerance=1e-9) const |
double | Distance (const Point2d &theOther) const |
void | Add (const Vector2d &theOther) |
Point2d | Added (const Point2d &theOther) const |
Point2d | Added (const Vector2d &theOther) const |
void | Subtract (const Vector2d &theOther) |
Point2d | Subtracted (const Vector2d &theOther) const |
Vector2d | Subtracted (const Point2d &theOther) const |
void | Multiply (const double theScalar) |
void | Multiply (const Matrix2d &theMatrix) |
Point2d | Multiplied (const double theScalar) const |
void | Divide (const double theScalar) |
Point2d | Divided (const double theScalar) const |
void | Transform (const Transformation2d &theTransformation) |
Point2d | Transformed (const Transformation2d &theTransformation) const |
Point2d & | operator= (const Point2d &theOther) |
void | operator+= (const Vector2d &theOther) |
void | operator-= (const Vector2d &theOther) |
void | operator*= (const double theScalar) |
void | operator/= (const double theScalar) |
double | operator[] (size_t theIndex) const |
Static Public Member Functions | |
static const Point2d & | Origin () |
Defines a 3D point.