pub trait Angle<N> {
Show 15 methods
// Required methods
fn pi() -> Self
where N: NumCast;
fn two_pi() -> Self
where N: NumCast;
fn half_pi() -> Self
where N: NumCast;
fn to_rad(self) -> Rad<N>
where N: NumCast;
fn to_deg(self) -> Deg<N>
where N: NumCast;
fn wrap(self) -> Self
where N: NumCast + Clone;
fn max(self, other: Self) -> Self
where N: PartialOrd + NumCast + Clone;
fn min(self, other: Self) -> Self
where N: PartialOrd + NumCast + Clone;
fn value(self) -> N;
fn as_value(&self) -> &N;
fn sin(self) -> N
where N: Float + NumCast;
fn cos(self) -> N
where N: Float + NumCast;
fn tan(self) -> N
where N: Float + NumCast;
fn sin_cos(self) -> (N, N)
where N: Float + NumCast;
fn abs(self) -> Self
where N: Signed;
}
Required Methods§
fn pi() -> Selfwhere
N: NumCast,
fn two_pi() -> Selfwhere
N: NumCast,
fn half_pi() -> Selfwhere
N: NumCast,
fn to_rad(self) -> Rad<N>where
N: NumCast,
fn to_deg(self) -> Deg<N>where
N: NumCast,
fn wrap(self) -> Self
fn max(self, other: Self) -> Self
fn min(self, other: Self) -> Self
fn value(self) -> N
fn as_value(&self) -> &N
fn sin(self) -> N
fn cos(self) -> N
fn tan(self) -> N
fn sin_cos(self) -> (N, N)
fn abs(self) -> Selfwhere
N: Signed,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.