Trig

Trait Trig 

Source
pub trait Trig: Sized + Copy {
    // Required methods
    fn sin(self) -> Self;
    fn cos(self) -> Self;
    fn sin_cos(self) -> (Self, Self);
    fn tan(self) -> Self;
    fn asin(self) -> Self;
    fn acos(self) -> Self;
    fn atan(self) -> Self;
    fn atan2(self, _: Self) -> Self;
}
Expand description

Trait for computing trigonometric functions and their inverses.

Required Methods§

Source

fn sin(self) -> Self

Source

fn cos(self) -> Self

Source

fn sin_cos(self) -> (Self, Self)

Source

fn tan(self) -> Self

Source

fn asin(self) -> Self

Source

fn acos(self) -> Self

Source

fn atan(self) -> Self

Source

fn atan2(self, _: Self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Trig for f32

Source§

fn sin(self) -> f32

Source§

fn cos(self) -> f32

Source§

fn sin_cos(self) -> (f32, f32)

Source§

fn tan(self) -> f32

Source§

fn asin(self) -> f32

Source§

fn acos(self) -> f32

Source§

fn atan(self) -> f32

Source§

fn atan2(self, x: Self) -> f32

Source§

impl Trig for f64

Source§

fn sin(self) -> f64

Source§

fn cos(self) -> f64

Source§

fn sin_cos(self) -> (f64, f64)

Source§

fn tan(self) -> f64

Source§

fn asin(self) -> f64

Source§

fn acos(self) -> f64

Source§

fn atan(self) -> f64

Source§

fn atan2(self, x: Self) -> f64

Implementors§