TrigOps

Trait TrigOps 

Source
pub trait TrigOps<T>:
    Copy
    + Clone
    + Debug {
    // Required methods
    fn sin(self) -> T;
    fn cos(self) -> T;
    fn tan(self) -> T;
    fn to_radians(self) -> T;
    fn to_degrees(self) -> T;
}
Expand description

Trigonometric operations

Required Methods§

Source

fn sin(self) -> T

Sine function (input in radians)

Source

fn cos(self) -> T

Cosine function (input in radians)

Source

fn tan(self) -> T

Tangent function (input in radians)

Source

fn to_radians(self) -> T

Convert degrees to radians

Source

fn to_degrees(self) -> T

Convert radians to degrees

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.

Implementors§