#[repr(transparent)]pub struct Wrap<F: Float, U: Unit<F>>(_);
Expand description
An angle that wraps between a negative half turn and a positive half turn.
Implementations§
source§impl<F: Float, U: Unit<F>> Wrap<F, U>
impl<F: Float, U: Unit<F>> Wrap<F, U>
sourcepub const QUARTER_TURN: Self = _
pub const QUARTER_TURN: Self = _
Quarter turn around a circle. Equal to π/2 radians or 90°.
sourcepub const FULL_TURN: Angle<F, U> = Angle::FULL_TURN
pub const FULL_TURN: Angle<F, U> = Angle::FULL_TURN
Full turn around a circle. Equal to 2π radians or 360°;
Trait Implementations§
source§impl<F: Float, U: Unit<F>, Rhs: Into<Angle<F, U>>> AddAssign<Rhs> for Wrap<F, U>
impl<F: Float, U: Unit<F>, Rhs: Into<Angle<F, U>>> AddAssign<Rhs> for Wrap<F, U>
source§fn add_assign(&mut self, rhs: Rhs)
fn add_assign(&mut self, rhs: Rhs)
Performs the
+=
operation. Read moresource§impl<F: Float, U: Unit<F>> DivAssign<F> for Wrap<F, U>
impl<F: Float, U: Unit<F>> DivAssign<F> for Wrap<F, U>
source§fn div_assign(&mut self, rhs: F)
fn div_assign(&mut self, rhs: F)
Performs the
/=
operation. Read moresource§impl<F: Float, U: Unit<F>> MulAssign<F> for Wrap<F, U>
impl<F: Float, U: Unit<F>> MulAssign<F> for Wrap<F, U>
source§fn mul_assign(&mut self, rhs: F)
fn mul_assign(&mut self, rhs: F)
Performs the
*=
operation. Read moresource§impl<F: Float, U: Unit<F>, Rhs: Into<Angle<F, U>>> SubAssign<Rhs> for Wrap<F, U>
impl<F: Float, U: Unit<F>, Rhs: Into<Angle<F, U>>> SubAssign<Rhs> for Wrap<F, U>
source§fn sub_assign(&mut self, rhs: Rhs)
fn sub_assign(&mut self, rhs: Rhs)
Performs the
-=
operation. Read more