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]

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

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

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

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

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

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

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

fn value(self) -> N[src]

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

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

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

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

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

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

Loading content...

Implementors

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

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

Loading content...