Trait euclid::Trig [] [src]

pub trait Trig {
    fn sin(self) -> Self;
fn cos(self) -> Self;
fn tan(self) -> Self;
fn fast_atan2(y: Self, x: Self) -> Self; }

Trait for basic trigonometry functions, so they can be used on generic numeric types

Required Methods

Implementations on Foreign Types

impl Trig for f32
[src]

[src]

[src]

[src]

[src]

A slightly faster approximation of atan2.

Note that it does not deal with the case where both x and y are 0.

impl Trig for f64
[src]

[src]

[src]

[src]

[src]

A slightly faster approximation of atan2.

Note that it does not deal with the case where both x and y are 0.

Implementors