Defines a 3D vector. More...
#include <cadex/Geom/Vector.hxx>
Public Member Functions | |
Vector () | |
Constructor. | |
Vector (const double theVal) | |
Constructor. | |
Vector (const Point &theOther) | |
Constructor. | |
Vector (const Vector &theOther) | |
Constructor. | |
Vector (const Direction &theOther) | |
Constructor. | |
Vector (double theX, double theY, double theZ) | |
Constructor. | |
Vector (const Point &theStart, const Point &theEnd) | |
Constructor. | |
double | X () const |
double | Y () const |
double | Z () const |
void | SetX (double theValue) |
void | SetY (double theValue) |
void | SetZ (double theValue) |
void | SetCoord (double theX, double theY, double theZ) |
bool | IsEqual (const Vector &theOther, double theTolerance=1e-7) const |
double | Length () const |
double | Angle (const Vector &theOther) const |
bool | IsNormal (const Vector &theOther, const double theAngularTolerance) const |
bool | IsOpposite (const Vector &theOther, const double theAngularTolerance) const |
bool | IsParallel (const Vector &theOther, const double theAngularTolerance) const |
void | Reverse () |
Vector | Reversed () const |
void | Add (const Vector &theOther) |
Vector | Added (const Vector &theOther) const |
void | Subtract (const Vector &theOther) |
Vector | Subtracted (const Vector &theOther) const |
void | Multiply (const double theScalar) |
void | Multiply (const Vector &theOther) |
void | Multiply (const Matrix3d &theMatrix) |
Vector | Multiplied (const double theScalar) const |
Vector | Multiplied (const Vector &theOther) const |
Vector | Multiplied (const Matrix3d &theMatrix) const |
void | Divide (const double theScalar) |
Vector | Divided (const double theScalar) const |
void | Normalize () |
Vector | Normalized () |
void | Cross (const Vector &theOther) |
Vector | Crossed (const Vector &theOther) const |
double | Dot (const Vector &theOther) const |
void | Transform (const Transformation &theTrsf) |
Vector | Transformed (const Transformation &theTrsf) const |
void | Rotate (const Axis1d &theAxis, double theAngle) |
Vector | Rotated (const Axis1d &theAxis, double theAngle) const |
void | Mirror (const Direction &theDir) |
void | Mirror (const Axis1d &theAxis) |
void | Mirror (const Axis3d &theAxis) |
Vector | Mirrored (const Direction &theDir) const |
Vector | Mirrored (const Axis1d &theAxis) const |
Vector | Mirrored (const Axis3d &theAxis) const |
Vector & | operator= (const Vector &theOther) |
void | operator+= (const Vector &theOther) |
void | operator-= (const Vector &theOther) |
void | operator*= (const double theScalar) |
void | operator*= (const Vector &theOther) |
void | operator/= (const double theScalar) |
void | operator^= (const Vector &theOther) |
double | operator[] (size_t theIndex) const |
Defines a 3D vector.
cadex::Geom::Vector::Vector | ( | ) |
Constructor.
Creates a vector with (0, 0, 0) coordinates.