pub trait SinCoswhere
Self: Sized,{
// Required methods
fn sin_cos(self) -> (Self, Self);
fn sin(self) -> Self;
fn cos(self) -> Self;
fn tan(self) -> Option<Self>;
}
Expand description
Calculation of sine, cosine and tangent for number in degrees.
Required Methods§
Sourcefn sin_cos(self) -> (Self, Self)
fn sin_cos(self) -> (Self, Self)
Simultaneously calculate sine and cosine, returns (sin(self), cos(self))
.
Sourcefn sin(self) -> Self
fn sin(self) -> Self
Calculate sine of an angle.
sin_cos
should be used instead when both sine and cosine are needed.
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.