pub struct Angle(/* private fields */);Expand description
Angular magnitude in degrees.
Not a compass direction and not wrapped: a difference, error or subtended angle whose sign matters (gyro error, sextant angle, leeway).
Implementations§
Source§impl Angle
impl Angle
Sourcepub fn from_degrees(value: f64) -> Result<Self>
pub fn from_degrees(value: f64) -> Result<Self>
Sourcepub fn from_minutes(value: f64) -> Result<Self>
pub fn from_minutes(value: f64) -> Result<Self>
Sourcepub fn from_degrees_minutes_seconds(
degrees: f64,
minutes: f64,
seconds: f64,
) -> Result<Self>
pub fn from_degrees_minutes_seconds( degrees: f64, minutes: f64, seconds: f64, ) -> Result<Self>
Sourcepub fn from_radians(value: f64) -> Result<Self>
pub fn from_radians(value: f64) -> Result<Self>
Sourcepub fn normalised(self) -> Self
pub fn normalised(self) -> Self
Folded into [-180°, 180°).
Trait Implementations§
impl Copy for Angle
Source§impl PartialOrd for Angle
impl PartialOrd 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 UnsafeUnpin 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