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