pub struct Gradian;Expand description
Gradian (also called gon; 1/400 of a full turn = 0.9 degree).
Trait Implementations§
Source§impl PartialOrd for Gradian
impl PartialOrd for Gradian
impl Copy for Gradian
impl StructuralPartialEq for Gradian
Auto Trait Implementations§
impl Freeze for Gradian
impl RefUnwindSafe for Gradian
impl Send for Gradian
impl Sync for Gradian
impl Unpin for Gradian
impl UnwindSafe for Gradian
Blanket Implementations§
Source§impl<T> AngularUnit for T
impl<T> AngularUnit for T
Source§const FULL_TURN: f64 = const FULL_TURN: f64 = Radians::new(TAU).to::<T>().value();
const FULL_TURN: f64 = const FULL_TURN: f64 = Radians::new(TAU).to::<T>().value();
One full revolution (360°) expressed in T unit.
Source§const HALF_TURN: f64 = const HALF_TURN: f64 = Radians::new(TAU).to::<T>().value() * 0.5;
const HALF_TURN: f64 = const HALF_TURN: f64 = Radians::new(TAU).to::<T>().value() * 0.5;
Half a revolution (180°) expressed in T unit.
Source§const QUARTED_TURN: f64 = const QUARTED_TURN: f64 = Radians::new(TAU).to::<T>().value() * 0.25;
const QUARTED_TURN: f64 = const QUARTED_TURN: f64 = Radians::new(TAU).to::<T>().value() * 0.25;
Quarter revolution (90°) expressed in T unit.
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