#[repr(C)]pub struct GCEulerAngles {
pub pitch: c_double,
pub yaw: c_double,
pub roll: c_double,
}
GCMotion
only.Expand description
A structure containing 3-axis rotation data. The angles are rotated in order or pitch then yaw then roll.
Field: pitch X-axis rotation in radians. The sign follows the right hand rule (i.e. if the right hand is wrapped around the X axis such that the tip of the thumb points toward positive X, a positive rotation is one toward the tips of the other 4 fingers).
Field: yaw Y-axis rotation in radians. The sign follows the right hand rule (i.e. if the right hand is wrapped around the Y axis such that the tip of the thumb points toward positive Y, a positive rotation is one toward the tips of the other 4 fingers).
Field: roll Z-axis rotation in radians. The sign follows the right hand rule (i.e. if the right hand is wrapped around the Z axis such that the tip of the thumb points toward positive Z, a positive rotation is one toward the tips of the other 4 fingers).
See also Apple’s documentation
Fields§
§pitch: c_double
§yaw: c_double
§roll: c_double
Trait Implementations§
Source§impl Clone for GCEulerAngles
impl Clone for GCEulerAngles
Source§fn clone(&self) -> GCEulerAngles
fn clone(&self) -> GCEulerAngles
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more