Trait angular_units::FromAngle
[−]
[src]
pub trait FromAngle<T> where T: Angle { fn from_angle(from: T) -> Self; }
Construct Self from an angle.
Analogous to the traits in the standard library, FromAngle and IntoAngle provide a way to convert between angle types and to mix various angle types in a single operation.
Required Methods
fn from_angle(from: T) -> Self
Construct Self by converting a T.
Implementors
impl<T, U> FromAngle<U> for Deg<T> where U: Angle<Scalar=T>, T: Floatimpl<T, U> FromAngle<U> for Rad<T> where U: Angle<Scalar=T>, T: Floatimpl<T, U> FromAngle<U> for Turns<T> where U: Angle<Scalar=T>, T: Floatimpl<T, U> FromAngle<U> for ArcMinutes<T> where U: Angle<Scalar=T>, T: Floatimpl<T, U> FromAngle<U> for ArcSeconds<T> where U: Angle<Scalar=T>, T: Float