![]() |
VectorNav C++ Library
|
Representation of an orientation/attitude. More...
#include <attitude.h>
Public Member Functions | |
vec3f | yprInDegs () |
Returns the orientation as represented in yaw, pitch, roll in degrees. More... | |
vec3f | yprInRads () |
Returns the orientation as represented in yaw, pitch, roll in radians. More... | |
vec4f | quat () |
Returns the orientation as represented in quaternion. More... | |
mat3f | dcm () |
Returns the orientation as represented by a direction cosine matrix. More... | |
Static Public Member Functions | |
static AttitudeF | noRotation () |
Returns an AttitudeF representing no rotation. | |
static AttitudeF | fromQuat (vec4f quat) |
Creates a new AttitudeF from a quaternion. More... | |
static AttitudeF | fromYprInDegs (vec3f yprInDegs) |
Creates a new AttitudeF from a yaw, pitch, roll in degrees. More... | |
static AttitudeF | fromYprInRads (vec3f yprInRads) |
Creates a new AttitudeF from a yaw, pitch, roll in radians. More... | |
static AttitudeF | fromDcm (mat3f dcm) |
Creates a new AttitudeF from a direction cosine matrix. More... | |
Representation of an orientation/attitude.
mat3f vn::math::AttitudeF::dcm | ( | ) |
Returns the orientation as represented by a direction cosine matrix.
vec4f vn::math::AttitudeF::quat | ( | ) |
Returns the orientation as represented in quaternion.
vec3f vn::math::AttitudeF::yprInDegs | ( | ) |
Returns the orientation as represented in yaw, pitch, roll in degrees.
vec3f vn::math::AttitudeF::yprInRads | ( | ) |
Returns the orientation as represented in yaw, pitch, roll in radians.