|
Instrument Neutral Distributed Interface INDI 2.2.5
|
Holds a normalised direction vector (direction cosines) More...
#include <Common.h>
Public Member Functions | |
| TelescopeDirectionVector () | |
| Default constructor. | |
| TelescopeDirectionVector (double X, double Y, double Z) | |
| Copy constructor. | |
| const TelescopeDirectionVector | operator* (const TelescopeDirectionVector &RHS) const |
| Override the * operator to return a cross product. | |
| const TelescopeDirectionVector | operator* (const double &RHS) const |
| Override the * operator to return a scalar product. | |
| const TelescopeDirectionVector & | operator*= (const double &RHS) |
| Override the *= operator to return a unary scalar product. | |
| const TelescopeDirectionVector | operator- (const TelescopeDirectionVector &RHS) const |
| Override the - operator to return a binary vector subtract. | |
| double | operator^ (const TelescopeDirectionVector &RHS) const |
| Override the ^ operator to return a dot product. | |
| double | Length () const |
| Return the length of the vector. | |
| void | Normalise () |
| Normalise the vector. | |
| void | RotateAroundY (double Angle) |
| Rotate the reference frame around the Y axis. This has the affect of rotating the vector itself in the opposite direction. | |
Public Attributes | |
| double | x |
| double | y |
| double | z |
Holds a normalised 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 |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| 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. |
Definition at line 18 of file Common.cpp.
| double INDI::AlignmentSubsystem::TelescopeDirectionVector::x |
| double INDI::AlignmentSubsystem::TelescopeDirectionVector::y |
| double INDI::AlignmentSubsystem::TelescopeDirectionVector::z |