FOUND
|
An Attitude is an immutable object that represents the orientation of a 3D point. More...
#include <attitude-utils.hpp>
Public Member Functions | |
Attitude ()=default | |
Attitude (const Quaternion &) | |
Constructs an Attitude object from Quaternion information. | |
Attitude (const Mat3 &dcm) | |
Constructs an Attitude object from a Direction Cosine Matrix (A matrix holding the direction cosines for an attitude) | |
Quaternion | GetQuaternion () const |
Provides the Quaternion corresponding to this Attitude. | |
Mat3 | GetDCM () const |
Obtains the rotation matrix from this Attitude. | |
EulerAngles | ToSpherical () const |
Obtains the Euler Angles of this Attitude. | |
Vec3 | Rotate (const Vec3 &) const |
Obtains a vector rotated to this Attitude from another vector (Convert a vector from the reference frame to the body frame.) | |
Private Types | |
enum | AttitudeType { NullType , QuaternionType , DCMType } |
Represents what internal representation for attitude is being used. More... | |
Private Attributes | |
Quaternion | quaternion |
Internal Quaternion Representation. | |
Mat3 | dcm |
Internal DCM Representation. | |
AttitudeType | type |
Internal Representation Type. | |
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.
|
private |
Represents what internal representation for attitude is being used.
Enumerator | |
---|---|
NullType | No Internal representation. |
QuaternionType | Quaternion Internal Representation. |
DCMType | DCM Internal Representation. |
|
default |
|
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.
|
private |
Internal DCM Representation.
|
private |
Internal Quaternion Representation.
|
private |
Internal Representation Type.