Trait Trig

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

Trigonometry functions

Required Methods§

Source

fn sin(self) -> Self

Refer to f32::sin

Source

fn asin(self) -> Self

Refer to f32::asin

Source

fn sinh(self) -> Self

Refer to f32::sinh

Source

fn asinh(self) -> Self

Refer to f32::asinh

Source

fn cos(self) -> Self

Refer to f32::cos

Source

fn acos(self) -> Self

Refer to f32::acos

Source

fn cosh(self) -> Self

Refer to f32::cosh

Source

fn acosh(self) -> Self

Refer to f32::acosh

Source

fn tan(self) -> Self

Refer to f32::tan

Source

fn atan(self) -> Self

Refer to f32::atan

Source

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

Refer to f32::atan2

Source

fn tanh(self) -> Self

Refer to f32::tanh

Source

fn atanh(self) -> Self

Refer to f32::atanh

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

Source§

fn asin(self) -> Self

Source§

fn sinh(self) -> Self

Source§

fn asinh(self) -> Self

Source§

fn cos(self) -> Self

Source§

fn acos(self) -> Self

Source§

fn cosh(self) -> Self

Source§

fn acosh(self) -> Self

Source§

fn tan(self) -> Self

Source§

fn atan(self) -> Self

Source§

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

Source§

fn tanh(self) -> Self

Source§

fn atanh(self) -> Self

Source§

impl Trig for f64

Source§

fn sin(self) -> Self

Source§

fn asin(self) -> Self

Source§

fn sinh(self) -> Self

Source§

fn asinh(self) -> Self

Source§

fn cos(self) -> Self

Source§

fn acos(self) -> Self

Source§

fn cosh(self) -> Self

Source§

fn acosh(self) -> Self

Source§

fn tan(self) -> Self

Source§

fn atan(self) -> Self

Source§

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

Source§

fn tanh(self) -> Self

Source§

fn atanh(self) -> Self

Implementors§

Source§

impl<T: FastFloat + Trig + Rounding + Log> Trig for FFloat<T>