pub struct Degree;Expand description
Degrees (−180 … 180). Mirrors boost::geometry::degree
(boost/geometry/core/cs.hpp:41).
§Examples
use geometry_cs::{AngleUnit, Degree};
assert!((Degree::to_radians(90.0_f64) - core::f64::consts::FRAC_PI_2).abs() < 1e-12);Trait Implementations§
Source§impl AngleUnit for Degree
impl AngleUnit for Degree
Source§fn to_radians<T: CoordinateScalar + FromF64>(value: T) -> T
fn to_radians<T: CoordinateScalar + FromF64>(value: T) -> T
Convert a value in this unit to radians. Read more
Source§fn from_radians<T: CoordinateScalar + FromF64>(value: T) -> T
fn from_radians<T: CoordinateScalar + FromF64>(value: T) -> T
Convert a value in radians to this unit. Read more
impl Copy for Degree
Source§impl SpheroidalUnits<f32> for Degree
impl SpheroidalUnits<f32> for Degree
Source§impl SpheroidalUnits<f64> for Degree
impl SpheroidalUnits<f64> for Degree
Source§impl SpheroidalUnits<i16> for Degree
impl SpheroidalUnits<i16> for Degree
Source§impl SpheroidalUnits<i32> for Degree
impl SpheroidalUnits<i32> for Degree
Source§impl SpheroidalUnits<i64> for Degree
impl SpheroidalUnits<i64> for Degree
Source§impl SpheroidalUnits<i128> for Degree
impl SpheroidalUnits<i128> for Degree
Auto Trait Implementations§
impl Freeze for Degree
impl RefUnwindSafe for Degree
impl Send for Degree
impl Sync for Degree
impl Unpin for Degree
impl UnsafeUnpin for Degree
impl UnwindSafe for Degree
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