c4dynamics.states.lib.quatbody.quatbody.angles

Contents

c4dynamics.states.lib.quatbody.quatbody.angles#

property quatbody.angles#

Returns an array of Euler angles.

\[angles = [\varphi, \theta, \psi]\]

The 3-2-1 Euler angles are derived from the attitude quaternion (see quat2euler).

Returns:

out (numpy.array) – An array of three Euler angles, about each one of the axes \(([\varphi, \theta, \psi])\)

Examples

>>> qb = c4d.quatbody(phi = 135 * c4d.d2r)
>>> qb.angles * c4d.r2d 
[135  0  0]