Attitude

Attitude

The attitude module contains function for common attitude operations, different attitude representations (Quaternions, Euler Angles, Euler Axis & Angle, Rotation Matrices), and transformations between different attitude representations.

Rotation matrix, for a rotation about the x-axis.

Arguments:

  • angle::Real: Counter-clockwise angle of rotation as viewed looking back along the postive direction of the rotation axis.
  • use_degrees:Bool: If true interpret input as being in degrees.

Returns:

  • r::Array{<:Real, 2}: Rotation matrix

References:

  1. O. Montenbruck, and E. Gill, Satellite Orbits: Models, Methods and Applications, 2012, p.27.
source

Rotation matrix, for a rotation about the y-axis.

Arguments:

  • angle::Real: Counter-clockwise angle of rotation as viewed looking back along the postive direction of the rotation axis.
  • use_degrees:Bool: If true interpret input as being in degrees.

Returns:

  • r::Array{<:Real, 2}: Rotation matrix

References:

  1. O. Montenbruck, and E. Gill, Satellite Orbits: Models, Methods and Applications, 2012, p.27.
source

Rotation matrix, for a rotation about the z-axis.

Arguments:

  • angle::Real: Counter-clockwise angle of rotation as viewed looking back along the postive direction of the rotation axis.
  • use_degrees:Bool: If true interpret input as being in degrees.

Returns:

  • r::Array{<:Real, 2}: Rotation matrix

References:

  1. O. Montenbruck, and E. Gill, Satellite Orbits: Models, Methods and Applications, 2012, p.27.
source

Quaternions

Quaternion
as_vector(q::Quaternion)
as_matrix(q::Quaternion)
copy(q::Quaternion)
deepcopy(q::Quaternion)
slerp

EulerAngle

EulerAngle
as_vector(e::EulerAngle)
as_matrix(e::EulerAngle)
copy(e::EulerAngle)
deepcopy(e::EulerAngle)

EulerAxis

EulerAxis
as_vector(e::EulerAxis)
as_matrix(e::EulerAxis)
copy(e::EulerAxis)
deepcopy(e::EulerAxis)