TwiceAsNice
2019-02-18
|
Holds a nomalised direction vector (direction cosines) More...
#include <Common.h>
Public Member Functions | |
TelescopeDirectionVector () | |
Default constructor. More... | |
TelescopeDirectionVector (double X, double Y, double Z) | |
Copy constructor. More... | |
const TelescopeDirectionVector | operator* (const TelescopeDirectionVector &RHS) const |
Override the * operator to return a cross product. More... | |
const TelescopeDirectionVector | operator* (const double &RHS) const |
Override the * operator to return a scalar product. More... | |
const TelescopeDirectionVector & | operator*= (const double &RHS) |
Override the *= operator to return a unary scalar product. More... | |
const TelescopeDirectionVector | operator- (const TelescopeDirectionVector &RHS) const |
Override the - operator to return a binary vector subtract. More... | |
double | operator^ (const TelescopeDirectionVector &RHS) const |
Override the ^ operator to return a dot product. More... | |
double | Length () const |
Return the length of the vector. More... | |
void | Normalise () |
Normalise the vector. More... | |
void | RotateAroundY (double Angle) |
Rotate the reference frame around the Y axis. More... | |
Public Attributes | |
double | x |
double | y |
double | z |
Holds a nomalised direction vector (direction cosines)
The x y,z fields of this class should normally represent a normalised (unit length) vector in a right handed rectangular coordinate space. However, for convenience a number a number of standard 3d vector methods are also supported.
|
inline |
Default constructor.
|
inline |
Copy constructor.
|
inline |
Return the length of the vector.
|
inline |
Normalise the vector.
|
inline |
Override the * operator to return a cross product.
|
inline |
Override the * operator to return a scalar product.
|
inline |
Override the *= operator to return a unary scalar product.
|
inline |
Override the - operator to return a binary vector subtract.
|
inline |
Override the ^ operator to return a dot product.
void INDI::AlignmentSubsystem::TelescopeDirectionVector::RotateAroundY | ( | double | Angle | ) |
Rotate the reference frame around the Y axis.
This has the affect of rotating the vector itself in the opposite direction
[in] | Angle | The angle to rotate the reference frame by. Positive values give an anti-clockwise rotation from the perspective of looking down the positive axis towards the origin. |
double INDI::AlignmentSubsystem::TelescopeDirectionVector::x |
double INDI::AlignmentSubsystem::TelescopeDirectionVector::y |
double INDI::AlignmentSubsystem::TelescopeDirectionVector::z |