pub struct Angle { /* private fields */ }
Expand description
An angle
Implementations§
source§impl Angle
impl Angle
sourcepub fn from_rev(rev: f64) -> Self
pub fn from_rev(rev: f64) -> Self
Create a new angle specified in revolutions
sourcepub fn rev(&self) -> f64
pub fn rev(&self) -> f64
Retrieve value of angle as revolutions
sourcepub fn normalized(&self) -> Self
pub fn normalized(&self) -> Self
Returns this angle normalized to the range [0, 2pi) radians
Trait Implementations§
source§impl AddAssign<Angle> for Angle
impl AddAssign<Angle> for Angle
source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moresource§impl DivAssign<f64> for Angle
impl DivAssign<f64> for Angle
source§fn div_assign(&mut self, rhs: f64)
fn div_assign(&mut self, rhs: f64)
Performs the
/=
operation. Read moresource§impl MulAssign<f64> for Angle
impl MulAssign<f64> for Angle
source§fn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
Performs the
*=
operation. Read moresource§impl PartialEq<Angle> for Angle
impl PartialEq<Angle> for Angle
source§impl SubAssign<Angle> for Angle
impl SubAssign<Angle> for Angle
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read more