pub struct Angle(/* private fields */);Expand description
A scalar angular quantity.
Prevents confusion between degrees and radians by requiring the use of
one of the named constructors to create an Angle, as well as one of
the named getter methods to obtain the angle as a raw f32 value.
Implementations§
Trait Implementations§
Source§impl Affine for Angle
impl Affine for Angle
Source§impl ApproxEq for Angle
impl ApproxEq for Angle
Source§fn approx_eq_eps(&self, other: &Self, eps: &Self) -> bool
fn approx_eq_eps(&self, other: &Self, eps: &Self) -> bool
Returns whether
self and other are approximately equal,
using the relative epsilon rel_eps.Source§fn relative_epsilon() -> Self
fn relative_epsilon() -> Self
Returns the default relative epsilon of type
E.impl Copy for Angle
impl StructuralPartialEq for Angle
Auto Trait Implementations§
impl Freeze for Angle
impl RefUnwindSafe for Angle
impl Send for Angle
impl Sync for Angle
impl Unpin for Angle
impl UnwindSafe for Angle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<V> Vary for V
impl<V> Vary for V
Source§fn dv_dt(&self, other: &V, recip_dt: f32) -> <V as Vary>::Diff
fn dv_dt(&self, other: &V, recip_dt: f32) -> <V as Vary>::Diff
Returns, conceptually,
(other - self) / dt.