Defines a 2D vector. More...
#include <cadex/Geom/Vector2d.hxx>
Public Member Functions | |
Vector2d () | |
Constructor. | |
Vector2d (double theVal) | |
Constructor. | |
Vector2d (const Point2d &theOther) | |
Constructor. | |
Vector2d (const Vector2d &theOther) | |
Constructor. | |
Vector2d (double theX, double theY) | |
Constructor. | |
Vector2d (const Direction2d &theOther) | |
Constructor. | |
Vector2d (const Point2d &thePoint1, const Point2d &thePoint2) | |
Constructor. | |
double | X () const |
double | Y () const |
void | SetX (double theValue) |
void | SetY (double theValue) |
void | SetCoord (double theX, double theY) |
bool | IsEqual (const Vector2d &theOther, double theTolerance=1e-9) const |
double | Length () const |
double | Angle (const Vector2d &theOther) const |
bool | IsNormal (const Vector2d &theOther, const double theAngularTolerance) const |
bool | IsOpposite (const Vector2d &theOther, const double theAngularTolerance) const |
bool | IsParallel (const Vector2d &theOther, const double theAngularTolerance) const |
void | Normalize () |
Vector2d | Normalized () |
void | Reverse () |
Vector2d | Reversed () const |
void | Add (const Vector2d &theOther) |
Vector2d | Added (const Vector2d &theOther) const |
void | Subtract (const Vector2d &theOther) |
Vector2d | Subtracted (const Vector2d &theOther) const |
void | Multiply (const double theScalar) |
void | Multiply (const Vector2d &theOther) |
void | Multiply (const Matrix2d &theMatrix) |
Vector2d | Multiplied (const double theScalar) const |
Vector2d | Multiplied (const Vector2d &theOther) const |
Vector2d | Multiplied (const Matrix2d &theMatrix) const |
void | Divide (const double theScalar) |
Vector2d | Divided (const double theScalar) const |
double | Crossed (const Vector2d &theOther) const |
double | Dot (const Vector2d &theOther) const |
void | Transform (const Transformation2d &theTrsf) |
Vector2d | Transformed (const Transformation2d &theTrsf) |
Vector2d & | operator= (const Vector2d &theOther) |
void | operator+= (const Vector2d &theOther) |
void | operator-= (const Vector2d &theOther) |
void | operator*= (const double theScalar) |
void | operator*= (const Vector2d &theOther) |
void | operator/= (const double theScalar) |
double | operator[] (size_t theIndex) const |
Defines a 2D vector.
cadex::Geom::Vector2d::Vector2d | ( | ) |
Constructor.
Creates a vector with (0, 0) coordinates.