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]

pub fn two_pi() -> Self where
    N: NumCast
[src]

pub fn half_pi() -> Self where
    N: NumCast
[src]

pub fn to_rad(self) -> Rad<N> where
    N: NumCast
[src]

pub fn to_deg(self) -> Deg<N> where
    N: NumCast
[src]

pub fn wrap(self) -> Self where
    N: NumCast + Clone
[src]

pub fn max(self, other: Self) -> Self where
    N: PartialOrd<N> + NumCast + Clone
[src]

pub fn min(self, other: Self) -> Self where
    N: PartialOrd<N> + NumCast + Clone
[src]

pub fn value(self) -> N[src]

pub fn as_value(&self) -> &N[src]

pub fn sin(self) -> N where
    N: Float + NumCast
[src]

pub fn cos(self) -> N where
    N: Float + NumCast
[src]

pub fn tan(self) -> N where
    N: Float + NumCast
[src]

pub fn sin_cos(self) -> (N, N) where
    N: Float + NumCast
[src]

pub fn abs(self) -> Self where
    N: Signed
[src]

Loading content...

Implementors

impl<N> Angle<N> for Deg<N> where
    N: Num
[src]

impl<N> Angle<N> for Rad<N> where
    N: Num
[src]

Loading content...