pub struct Angle { /* private fields */ }
Implementations§
Source§impl Angle
impl Angle
pub const fn new(value: f64, units: AngleUnits) -> Self
pub fn value(&self) -> f64
pub fn units(&self) -> AngleUnits
Source§impl Angle
impl Angle
pub const fn new_radians(value: f64) -> Angle
pub const fn new_degrees(value: f64) -> Angle
pub fn new_dms(degrees: i16, minutes: u8, seconds: f64) -> Angle
pub fn as_degrees(&self) -> Angle
pub fn as_radians(&self) -> Angle
pub fn as_dms(&self) -> (i16, u8, f64)
pub fn as_deg_min(&self) -> (i16, f64)
pub fn sin(&self) -> f64
pub fn asin(&self) -> f64
pub fn cos(&self) -> f64
pub fn acos(&self) -> f64
Trait Implementations§
Source§impl<'a> AddAssign<&Angle> for &mut Angle
impl<'a> AddAssign<&Angle> for &mut Angle
Source§fn add_assign(&mut self, rhs: &Angle)
fn add_assign(&mut self, rhs: &Angle)
Performs the
+=
operation. Read moreSource§impl<'a> AddAssign<&Angle> for Angle
impl<'a> AddAssign<&Angle> for Angle
Source§fn add_assign(&mut self, rhs: &Angle)
fn add_assign(&mut self, rhs: &Angle)
Performs the
+=
operation. Read moreSource§impl<'a> AddAssign<&mut Angle> for &mut Angle
impl<'a> AddAssign<&mut Angle> for &mut Angle
Source§fn add_assign(&mut self, rhs: &mut Angle)
fn add_assign(&mut self, rhs: &mut Angle)
Performs the
+=
operation. Read moreSource§impl<'a> AddAssign<&mut Angle> for Angle
impl<'a> AddAssign<&mut Angle> for Angle
Source§fn add_assign(&mut self, rhs: &mut Angle)
fn add_assign(&mut self, rhs: &mut Angle)
Performs the
+=
operation. Read moreSource§impl<'a> AddAssign<Angle> for &mut Angle
impl<'a> AddAssign<Angle> for &mut Angle
Source§fn add_assign(&mut self, rhs: Angle)
fn add_assign(&mut self, rhs: Angle)
Performs the
+=
operation. Read moreSource§impl<'a> AddAssign for Angle
impl<'a> AddAssign for Angle
Source§fn add_assign(&mut self, rhs: Angle)
fn add_assign(&mut self, rhs: Angle)
Performs the
+=
operation. Read moreSource§impl<'a> DivAssign<f64> for &mut Angle
impl<'a> DivAssign<f64> for &mut Angle
Source§fn div_assign(&mut self, rhs: f64)
fn div_assign(&mut self, rhs: f64)
Performs the
/=
operation. Read moreSource§impl<'a> DivAssign<f64> for Angle
impl<'a> 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 FromUnits<Angle> for CompassReference
impl FromUnits<Angle> for CompassReference
Source§impl FromUnits<Angle> for RotationDirection
impl FromUnits<Angle> for RotationDirection
Source§impl<'a> MulAssign<f64> for &mut Angle
impl<'a> MulAssign<f64> for &mut Angle
Source§fn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
Performs the
*=
operation. Read moreSource§impl<'a> MulAssign<f64> for Angle
impl<'a> 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 Ord for Angle
impl Ord for Angle
Source§impl PartialOrd for Angle
impl PartialOrd for Angle
Source§impl<'a> SubAssign<&Angle> for &mut Angle
impl<'a> SubAssign<&Angle> for &mut Angle
Source§fn sub_assign(&mut self, rhs: &Angle)
fn sub_assign(&mut self, rhs: &Angle)
Performs the
-=
operation. Read moreSource§impl<'a> SubAssign<&Angle> for Angle
impl<'a> SubAssign<&Angle> for Angle
Source§fn sub_assign(&mut self, rhs: &Angle)
fn sub_assign(&mut self, rhs: &Angle)
Performs the
-=
operation. Read moreSource§impl<'a> SubAssign<&mut Angle> for &mut Angle
impl<'a> SubAssign<&mut Angle> for &mut Angle
Source§fn sub_assign(&mut self, rhs: &mut Angle)
fn sub_assign(&mut self, rhs: &mut Angle)
Performs the
-=
operation. Read moreSource§impl<'a> SubAssign<&mut Angle> for Angle
impl<'a> SubAssign<&mut Angle> for Angle
Source§fn sub_assign(&mut self, rhs: &mut Angle)
fn sub_assign(&mut self, rhs: &mut Angle)
Performs the
-=
operation. Read moreSource§impl<'a> SubAssign<Angle> for &mut Angle
impl<'a> SubAssign<Angle> for &mut Angle
Source§fn sub_assign(&mut self, rhs: Angle)
fn sub_assign(&mut self, rhs: Angle)
Performs the
-=
operation. Read moreSource§impl<'a> SubAssign for Angle
impl<'a> SubAssign for Angle
Source§fn sub_assign(&mut self, rhs: Angle)
fn sub_assign(&mut self, rhs: Angle)
Performs the
-=
operation. Read moreSource§impl Unit<AngleUnits> for &Angle
impl Unit<AngleUnits> for &Angle
Source§impl Unit<AngleUnits> for &mut Angle
impl Unit<AngleUnits> for &mut Angle
Source§impl Unit<AngleUnits> for Angle
impl Unit<AngleUnits> for Angle
Source§impl UnitStruct<AngleUnits> for &Angle
impl UnitStruct<AngleUnits> for &Angle
Source§impl UnitStruct<AngleUnits> for &mut Angle
impl UnitStruct<AngleUnits> for &mut Angle
Source§impl UnitStruct<AngleUnits> for Angle
impl UnitStruct<AngleUnits> for Angle
impl Copy for Angle
impl Eq 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