49 std::vector<double>
ToAngles(
int axis3,
int axis2,
int axis1);
51 void Set(std::vector<double>);
80 return p_quaternion.at(index);
85 std::vector<double>
Qxv(
const std::vector<double> &vin);
93 std::vector<double> p_quaternion;
Provide operations for quaternion arithmetic.
Definition Quaternion.h:36
Quaternion & operator=(const Quaternion &quat)
Assign value of quaternion class to another quaternion.
Definition Quaternion.cpp:95
std::vector< double > ToMatrix()
Converts quaternion to 3x3 rotational matrix.
Definition Quaternion.cpp:75
std::vector< double > ToAngles(int axis3, int axis2, int axis1)
Return the camera angles (right ascension, declination, and twist) for the quaternion.
Definition Quaternion.cpp:260
Quaternion Conjugate()
Returns the conjugate of the quaternion.
Definition Quaternion.cpp:197
Quaternion()
Constructs an empty quaternion.
Definition Quaternion.cpp:26
Quaternion operator*(const Quaternion &quat) const
Multiply two Naif quaternions to create a new quaternion.
Definition Quaternion.cpp:147
~Quaternion()
Destroys the Quaternion object.
Definition Quaternion.cpp:49
double & operator[](int index)
Return a member of a quaternion.
Definition Quaternion.h:79
std::vector< double > Qxv(const std::vector< double > &vin)
Multiply a vector by a quaternion (rotate the vector)
Definition Quaternion.cpp:215
std::vector< double > GetQuaternion() const
Return the quaternion as a vector.
Definition Quaternion.h:54
void Set(std::vector< double >)
Sets the quaternion value.
Definition Quaternion.cpp:56
Quaternion & operator*=(const Quaternion &quat)
Multiply current Naif quaternion by another Naif quaternion, replacing the current quaternion.
Definition Quaternion.cpp:117
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16