Struct geom::angle::Angle [−][src]
pub struct Angle(f64);
Expand description
An angle, stored in radians.
Tuple Fields
0: f64
Implementations
Rotates this angle by some degrees.
Returns [0, 2pi)
Returns [0, 360)
Returns [-180, 180]
Logically this returns [-180, 180], but keep in mind when we print this angle, it’ll normalize to be [0, 360].
True if this angle is within some degrees of another, accounting for rotation
True if this angle is within some degrees of another, accounting for rotation and allowing two angles that point in opposite directions
I don’t know how to describe what this does. Use for rotating labels in map-space and making sure the text is never upside-down.
Trait Implementations
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
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Angle
impl UnwindSafe for Angle
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self