65 std::vector<double>
ToAngles(
int axis3,
int axis2,
int axis1);
67 void Set(std::vector<double>);
96 return p_quaternion.at(index);
101 std::vector<double>
Qxv(
const std::vector<double> &vin);
109 std::vector<double> p_quaternion;
Quaternion & operator=(const Quaternion &quat)
Assign value of quaternion class to another quaternion.
Definition: Quaternion.cpp:111
Provide operations for quaternion arithmetic.
Definition: Quaternion.h:52
void Set(std::vector< double >)
Sets the quaternion value.
Definition: Quaternion.cpp:72
Quaternion operator*(const Quaternion &quat) const
Multiply two Naif quaternions to create a new quaternion.
Definition: Quaternion.cpp:163
Quaternion & operator*=(const Quaternion &quat)
Multiply current Naif quaternion by another Naif quaternion, replacing the current quaternion...
Definition: Quaternion.cpp:133
Quaternion Conjugate()
Returns the conjugate of the quaternion.
Definition: Quaternion.cpp:213
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:276
std::vector< double > ToMatrix()
Converts quaternion to 3x3 rotational matrix.
Definition: Quaternion.cpp:91
std::vector< double > Qxv(const std::vector< double > &vin)
Multiply a vector by a quaternion (rotate the vector)
Definition: Quaternion.cpp:231
Quaternion()
Constructs an empty quaternion.
Definition: Quaternion.cpp:42
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
std::vector< double > GetQuaternion() const
Return the quaternion as a vector.
Definition: Quaternion.h:70
~Quaternion()
Destroys the Quaternion object.
Definition: Quaternion.cpp:65
double & operator[](int index)
Return a member of a quaternion.
Definition: Quaternion.h:95