Defines a 3D Direction. More...
#include <cadex/Geom/Direction.hxx>
Public Member Functions | |
Direction () | |
Constructor. | |
Direction (double theVal) | |
Constructor. | |
Direction (const Vector &theOther) | |
Constructor. | |
Direction (const Direction &theOther) | |
Constructor. | |
Direction (double theX, double theY, double theZ) | |
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) |
double | Angle (const Direction &theOther) const |
void | Reverse () |
Direction | Reversed () const |
void | Add (const Direction &theOther) |
Direction | Added (const Direction &theOther) const |
void | Subtract (const Direction &theOther) |
Direction | Subtracted (const Direction &theOther) const |
void | Multiply (const Direction &theOther) |
void | Multiply (const Matrix3d &theMatrix) |
Direction | Multiplied (const Direction &theOther) const |
Direction | Multiplied (const Matrix3d &theMatrix) const |
void | Cross (const Direction &theOther) |
Direction | Crossed (const Direction &theOther) const |
void | CrossCross (const Direction &theDir1, const Direction &theDir2) |
Direction | CrossCrossed (const Direction &theCoord1, const Direction &theCoord2) const |
double | Dot (const Direction &theOther) const |
bool | IsEqual (const Direction &theOther, const double theAngularTolerance=1e-5) const |
bool | IsNormal (const Direction &theOther, const double theAngularTolerance) const |
bool | IsOpposite (const Direction &theOther, const double theAngularTolerance) const |
bool | IsParallel (const Direction &theOther, const double theAngularTolerance) const |
void | Mirror (const Direction &theDir) |
void | Mirror (const Axis1d &theAxis) |
void | Mirror (const Axis3d &theAxis) |
Direction | Mirrored (const Direction &theDir) const |
Direction | Mirrored (const Axis1d &theAxis) const |
Direction | Mirrored (const Axis3d &theAxis) const |
void | Transform (const Transformation &T) |
Direction | Transformed (const Transformation &T) |
void | Rotate (const Axis1d &theAxis, double theAngle) |
Direction | Rotated (const Axis1d &theAxis, double theAngle) |
Direction & | operator= (const Direction &theOther) |
void | operator+= (const Direction &theOther) |
void | operator-= (const Direction &theOther) |
void | operator*= (const Direction &theOther) |
void | operator^= (const Direction &theOther) |
Static Public Member Functions | |
static const Direction & | XDir () |
static const Direction & | YDir () |
static const Direction & | ZDir () |
Defines a 3D Direction.
cadex::Geom::Direction::Direction | ( | ) |
Constructor.
Creates a direction with (0, 0, 1) coordinates.
cadex::Geom::Direction::Direction | ( | double | theVal | ) |
Constructor.
Creates a direction with (theVal, theVal, theVal) coordinates.