|
Instrument Neutral Distributed Interface INDI 2.2.5
|
The Vector class This implements the Directional Cosine used by Taki in his Matrix method. using Vector because it's a 3D vector, hope this doesn't clash too badly with std::vector. More...
#include <scopesim_helper.h>
Public Member Functions | |
| Vector () | |
| Vector creates an empty vector. | |
| Vector (double l, double m, double n) | |
| Vector creates vector from the three vector values. | |
| Vector (Angle primary, Angle secondary) | |
| Vector creates a vector from two angles (Ra, Dec), (Ha, Dec), (Azimuth, Altitude) | |
| double | lengthSquared () |
| double | length () |
| void | normalise () |
| Angle | primary () |
| primary returns the primary angle (Ra, Ha, Azimuth) from this vector | |
| Angle | secondary () |
| secondary returns the secondary angle (dec, altitude) from this vector | |
| Vector | rotateX (Angle angle) |
| rotateX rotates this vector through angle about the X axis | |
| Vector | rotateY (Angle angle) |
| rotateY rotates this vector through angle about the Y axis | |
| Vector | rotateZ (Angle angle) |
| rotateZ rotates this vector through angle about the Z axis | |
| double | l () |
| double | m () |
| double | n () |
Protected Attributes | |
| double | L |
| double | M |
| double | N |
The Vector class This implements the Directional Cosine used by Taki in his Matrix method. using Vector because it's a 3D vector, hope this doesn't clash too badly with std::vector.
The parameter names are selected to match what Taki uses.
Definition at line 587 of file scopesim_helper.h.
|
inline |
Vector creates an empty vector.
Definition at line 594 of file scopesim_helper.h.
| Vector::Vector | ( | double | l, |
| double | m, | ||
| double | n | ||
| ) |
Vector creates vector from the three vector values.
| l | |
| m | |
| n |
Definition at line 576 of file scopesim_helper.cpp.
Vector creates a vector from two angles (Ra, Dec), (Ha, Dec), (Azimuth, Altitude)
| primary | |
| secondary |
Definition at line 584 of file scopesim_helper.cpp.
|
inline |
Definition at line 656 of file scopesim_helper.h.
|
inline |
Definition at line 619 of file scopesim_helper.h.
|
inline |
Definition at line 614 of file scopesim_helper.h.
|
inline |
Definition at line 660 of file scopesim_helper.h.
|
inline |
Definition at line 664 of file scopesim_helper.h.
| void Vector::normalise | ( | ) |
Definition at line 596 of file scopesim_helper.cpp.
| Angle Vector::primary | ( | ) |
primary returns the primary angle (Ra, Ha, Azimuth) from this vector
Definition at line 604 of file scopesim_helper.cpp.
rotateX rotates this vector through angle about the X axis
| angle |
Definition at line 618 of file scopesim_helper.cpp.
rotateY rotates this vector through angle about the Y axis
| angle |
Definition at line 625 of file scopesim_helper.cpp.
rotateZ rotates this vector through angle about the Z axis
| rotX |
Definition at line 632 of file scopesim_helper.cpp.
| Angle Vector::secondary | ( | ) |
secondary returns the secondary angle (dec, altitude) from this vector
Definition at line 611 of file scopesim_helper.cpp.
|
protected |
Definition at line 670 of file scopesim_helper.h.
|
protected |
Definition at line 671 of file scopesim_helper.h.
|
protected |
Definition at line 672 of file scopesim_helper.h.