float

Trait Trig

Source
pub trait Trig {
Show 13 methods // Required methods fn sin(self) -> Self; fn cos(self) -> Self; fn tan(self) -> Self; fn asin(self) -> Self; fn acos(self) -> Self; fn atan(self) -> Self; fn atan2(self, other: Self) -> Self; fn sinh(self) -> Self; fn cosh(self) -> Self; fn tanh(self) -> Self; fn asinh(self) -> Self; fn acosh(self) -> Self; fn atanh(self) -> Self;
}
Expand description

Basic trigonometry functions

Required Methods§

Source

fn sin(self) -> Self

Returns sine of self.

Source

fn cos(self) -> Self

Returns cosine of self.

Source

fn tan(self) -> Self

Returns tangent of self.

Source

fn asin(self) -> Self

Returns inverse sine of self.

Source

fn acos(self) -> Self

Returns inverse cosine of self.

Source

fn atan(self) -> Self

Returns inverse tangent of self.

Source

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

Returns the four quadrant arctangent of self (y) and other (x).

Source

fn sinh(self) -> Self

Returns hyperbolic sine of self.

Source

fn cosh(self) -> Self

Returns hyperbolic cosine of self.

Source

fn tanh(self) -> Self

Returns hyperbolic tangent of self.

Source

fn asinh(self) -> Self

Returns inverse hyperbolic sine of self.

Source

fn acosh(self) -> Self

Returns inverse hyperbolic cosine of self.

Source

fn atanh(self) -> Self

Returns inverse hyperbolic tangent of 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 tan(self) -> f32

Source§

fn asin(self) -> f32

Source§

fn acos(self) -> f32

Source§

fn atan(self) -> f32

Source§

fn atan2(self, other: f32) -> f32

Source§

fn sinh(self) -> f32

Source§

fn cosh(self) -> f32

Source§

fn tanh(self) -> f32

Source§

fn asinh(self) -> f32

Source§

fn acosh(self) -> f32

Source§

fn atanh(self) -> f32

Source§

impl Trig for f64

Source§

fn sin(self) -> f64

Source§

fn cos(self) -> 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, other: f64) -> f64

Source§

fn sinh(self) -> f64

Source§

fn cosh(self) -> f64

Source§

fn tanh(self) -> f64

Source§

fn asinh(self) -> f64

Source§

fn acosh(self) -> f64

Source§

fn atanh(self) -> f64

Implementors§