DetectGimbalLock

Trait DetectGimbalLock 

Source
pub trait DetectGimbalLock<T>: GimbalLockZenithNadir<T> {
    // Required method
    fn close_to_zenith_or_nadir(&self, tolerance: T) -> bool;
}

Required Methods§

Source

fn close_to_zenith_or_nadir(&self, tolerance: T) -> bool

Determines whether a Gimbal Lock situation is about to occur because the angle (provided in radians) is close to π/2 or -π/2.

§Arguments
  • tolerance - The tolerance in radians, e.g. 0.01 rad.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> DetectGimbalLock<T> for T

Available on crate feature std only.