pub enum Angle {
Radians(f32),
Degrees(f32),
}
Variants§
Implementations§
source§impl Angle
impl Angle
pub const fn rad(rad: f32) -> Angle
pub const fn deg(deg: f32) -> Angle
pub const fn radians(radians: f32) -> Angle
pub const fn degrees(degrees: f32) -> Angle
pub fn to_rad(&self) -> f32
pub fn to_deg(&self) -> f32
pub fn to_radians(&self) -> f32
pub fn to_degrees(&self) -> f32
Trait Implementations§
source§impl PartialEq<Angle> for Angle
impl PartialEq<Angle> for Angle
source§impl PartialOrd<Angle> for Angle
impl PartialOrd<Angle> for Angle
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more