My Project
|
#include <attitude-utils.hpp>
Public Member Functions | |
Attitude (const Quaternion &) | |
Attitude (const Mat3 &dcm) | |
Quaternion | GetQuaternion () const |
Mat3 | GetDCM () const |
EulerAngles | ToSpherical () const |
Vec3 | Rotate (const Vec3 &) const |
An Attitude is an immutable object that represents the orientation of a 3D point.
The attitude (orientation) of a spacecraft. The Attitude object stores either a rotation matrix (direction cosine matrix) or a quaternion, and converts automatically to the other format when needed.
|
explicit |
Constructs an Attitude object from Quaternion information
quat | The quaternion to base the attitude off of |
|
explicit |
Constructs an Attitude object from a Direction Cosine Matrix (A matrix holding the direction cosines for an attitude)
matrix | The matrix holding the direction cosines |
Mat3 found::Attitude::GetDCM | ( | ) | const |
Obtains the rotation matrix from this Attitude
Quaternion found::Attitude::GetQuaternion | ( | ) | const |
Provides the Quaternion corresponding to this Attitude
Obtains a vector rotated to this Attitude from another vector (Convert a vector from the reference frame to the body frame.)
vec | The vector to rotate |
EulerAngles found::Attitude::ToSpherical | ( | ) | const |
Obtains the Euler Angles of this Attitude