Trait angle::Angle [−][src]
pub trait Angle<N> {
Show 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() -> Self where
N: NumCast, [src]
N: NumCast,
fn two_pi() -> Self where
N: NumCast, [src]
N: NumCast,
fn half_pi() -> Self where
N: NumCast, [src]
N: NumCast,
fn to_rad(self) -> Rad<N> where
N: NumCast, [src]
N: NumCast,
fn to_deg(self) -> Deg<N> where
N: NumCast, [src]
N: NumCast,
fn wrap(self) -> Self where
N: NumCast + Clone, [src]
N: NumCast + Clone,
fn max(self, other: Self) -> Self where
N: PartialOrd + NumCast + Clone, [src]
N: PartialOrd + NumCast + Clone,
fn min(self, other: Self) -> Self where
N: PartialOrd + NumCast + Clone, [src]
N: PartialOrd + NumCast + Clone,
fn value(self) -> N[src]
fn as_value(&self) -> &N[src]
fn sin(self) -> N where
N: Float + NumCast, [src]
N: Float + NumCast,
fn cos(self) -> N where
N: Float + NumCast, [src]
N: Float + NumCast,
fn tan(self) -> N where
N: Float + NumCast, [src]
N: Float + NumCast,
fn sin_cos(self) -> (N, N) where
N: Float + NumCast, [src]
N: Float + NumCast,
fn abs(self) -> Self where
N: Signed, [src]
N: Signed,
Implementors
impl<N: Num> Angle<N> for Deg<N>[src]
impl<N: Num> Angle<N> for Deg<N>[src]fn to_rad(self) -> Rad<N> where
N: NumCast, [src]
N: NumCast,
fn to_deg(self) -> Deg<N>[src]
fn pi() -> Deg<N> where
N: NumCast, [src]
N: NumCast,
fn two_pi() -> Deg<N> where
N: NumCast, [src]
N: NumCast,
fn half_pi() -> Deg<N> where
N: NumCast, [src]
N: NumCast,
fn wrap(self) -> Deg<N> where
N: NumCast + Clone, [src]
N: NumCast + Clone,
fn max(self, other: Deg<N>) -> Deg<N> where
N: PartialOrd + NumCast + Clone, [src]
N: PartialOrd + NumCast + Clone,
fn min(self, other: Deg<N>) -> Deg<N> where
N: PartialOrd + NumCast + Clone, [src]
N: PartialOrd + NumCast + Clone,
fn value(self) -> N[src]
fn as_value(&self) -> &N[src]
fn sin(self) -> N where
N: Float + NumCast, [src]
N: Float + NumCast,
fn cos(self) -> N where
N: Float + NumCast, [src]
N: Float + NumCast,
fn tan(self) -> N where
N: Float + NumCast, [src]
N: Float + NumCast,
fn sin_cos(self) -> (N, N) where
N: Float + NumCast, [src]
N: Float + NumCast,
fn abs(self) -> Deg<N> where
N: Signed, [src]
N: Signed,
impl<N: Num> Angle<N> for Rad<N>[src]
impl<N: Num> Angle<N> for Rad<N>[src]fn to_rad(self) -> Rad<N>[src]
fn to_deg(self) -> Deg<N> where
N: NumCast, [src]
N: NumCast,
fn pi() -> Rad<N> where
N: NumCast, [src]
N: NumCast,
fn two_pi() -> Rad<N> where
N: NumCast, [src]
N: NumCast,
fn half_pi() -> Rad<N> where
N: NumCast, [src]
N: NumCast,
fn wrap(self) -> Rad<N> where
N: NumCast + Clone, [src]
N: NumCast + Clone,
fn max(self, other: Rad<N>) -> Rad<N> where
N: PartialOrd + NumCast + Clone, [src]
N: PartialOrd + NumCast + Clone,
fn min(self, other: Rad<N>) -> Rad<N> where
N: PartialOrd + NumCast + Clone, [src]
N: PartialOrd + NumCast + Clone,
fn value(self) -> N[src]
fn as_value(&self) -> &N[src]
fn sin(self) -> N where
N: Float, [src]
N: Float,
fn cos(self) -> N where
N: Float, [src]
N: Float,
fn tan(self) -> N where
N: Float, [src]
N: Float,
fn sin_cos(self) -> (N, N) where
N: Float, [src]
N: Float,
fn abs(self) -> Rad<N> where
N: Signed, [src]
N: Signed,