Instrument Neutral Distributed Interface INDI  2.0.2
Public Member Functions | Protected Attributes | List of all members
Vector Class Reference

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. More...
 
 Vector (double l, double m, double n)
 Vector creates vector from the three vector values. More...
 
 Vector (Angle primary, Angle secondary)
 Vector creats a vector from two angles (Ra, Dec), (Ha, Dec), (Azimuth, Altitude) More...
 
double lengthSquared ()
 
double length ()
 
void normalise ()
 
Angle primary ()
 primary returns the primary angle (Ra, Ha, Azimuth) from this vector More...
 
Angle secondary ()
 secondary returns the secondary angle (dec, altitude) from this vector More...
 
Vector rotateX (Angle angle)
 rotateX rotates this vector through angle about the X axis More...
 
Vector rotateY (Angle angle)
 rotateY rotates this vector through angle about the Y axis More...
 
Vector rotateZ (Angle angle)
 rotateZ rotates this vector through angle about the Z axis More...
 
double l ()
 
double m ()
 
double n ()
 

Protected Attributes

double L
 
double M
 
double N
 

Detailed Description

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 565 of file scopesim_helper.h.

Constructor & Destructor Documentation

◆ Vector() [1/3]

Vector::Vector ( )
inline

Vector creates an empty vector.

Definition at line 572 of file scopesim_helper.h.

◆ Vector() [2/3]

Vector::Vector ( double  l,
double  m,
double  n 
)

Vector creates vector from the three vector values.

Parameters
l
m
n

Definition at line 484 of file scopesim_helper.cpp.

◆ Vector() [3/3]

Vector::Vector ( Angle  primary,
Angle  secondary 
)

Vector creats a vector from two angles (Ra, Dec), (Ha, Dec), (Azimuth, Altitude)

Parameters
primary
secondary

Definition at line 492 of file scopesim_helper.cpp.

Member Function Documentation

◆ l()

double Vector::l ( )
inline

Definition at line 634 of file scopesim_helper.h.

◆ length()

double Vector::length ( )
inline

Definition at line 597 of file scopesim_helper.h.

◆ lengthSquared()

double Vector::lengthSquared ( )
inline

Definition at line 592 of file scopesim_helper.h.

◆ m()

double Vector::m ( )
inline

Definition at line 638 of file scopesim_helper.h.

◆ n()

double Vector::n ( )
inline

Definition at line 642 of file scopesim_helper.h.

◆ normalise()

void Vector::normalise ( )

Definition at line 504 of file scopesim_helper.cpp.

◆ primary()

Angle Vector::primary ( )

primary returns the primary angle (Ra, Ha, Azimuth) from this vector

Returns

Definition at line 512 of file scopesim_helper.cpp.

◆ rotateX()

Vector Vector::rotateX ( Angle  angle)

rotateX rotates this vector through angle about the X axis

Parameters
angle

Definition at line 526 of file scopesim_helper.cpp.

◆ rotateY()

Vector Vector::rotateY ( Angle  angle)

rotateY rotates this vector through angle about the Y axis

Parameters
angle

Definition at line 533 of file scopesim_helper.cpp.

◆ rotateZ()

Vector Vector::rotateZ ( Angle  angle)

rotateZ rotates this vector through angle about the Z axis

Parameters
rotX

Definition at line 540 of file scopesim_helper.cpp.

◆ secondary()

Angle Vector::secondary ( )

secondary returns the secondary angle (dec, altitude) from this vector

Returns

Definition at line 519 of file scopesim_helper.cpp.

Member Data Documentation

◆ L

double Vector::L
protected

Definition at line 648 of file scopesim_helper.h.

◆ M

double Vector::M
protected

Definition at line 649 of file scopesim_helper.h.

◆ N

double Vector::N
protected

Definition at line 650 of file scopesim_helper.h.


The documentation for this class was generated from the following files: