pub struct Degrees(pub f64);
Expand description
The Degrees newtype an f64.
Tuple Fields§
§0: f64
Trait Implementations§
source§impl<'de> Deserialize<'de> for Degrees
impl<'de> Deserialize<'de> for Degrees
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<Degrees> for Angle
impl From<Degrees> for Angle
source§fn from(a: Degrees) -> Self
fn from(a: Degrees) -> Self
Construct an Angle from an angle in Degrees.
In order to minimize round-off errors, this function calculates sines
of angles with sine values <= 1 / sqrt(2): see
https://stackoverflow.com/questions/31502120/sin-and-cos-give-unexpected-results-for-well-known-angles
It is based on
GeographicLib::Math::sincosd function.
source§impl PartialEq for Degrees
impl PartialEq for Degrees
impl Copy for Degrees
impl StructuralPartialEq for Degrees
Auto Trait Implementations§
impl RefUnwindSafe for Degrees
impl Send for Degrees
impl Sync for Degrees
impl Unpin for Degrees
impl UnwindSafe for Degrees
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