Hide menu
Loading...
Searching...
No Matches

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)
 
Directionoperator= (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 DirectionXDir ()
 
static const DirectionYDir ()
 
static const DirectionZDir ()
 

Detailed Description

Constructor & Destructor Documentation

◆ Direction() [1/2]

cadex::Geom::Direction::Direction ( )

◆ Direction() [2/2]

cadex::Geom::Direction::Direction ( double theVal)

Constructor.

Creates a direction with (theVal, theVal, theVal) coordinates.