[][src]Trait angle::Angle

pub trait Angle<N> {
    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 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

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 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

Loading content...

Implementors

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

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

Loading content...