#![allow(clippy::disallowed_methods)]
#[inline(never)]
#[must_use]
pub fn sin(x: f64) -> f64 {
x.sin()
}
#[inline(never)]
#[must_use]
pub fn cos(x: f64) -> f64 {
x.cos()
}
#[inline]
#[must_use]
pub fn sin_cos(x: f64) -> (f64, f64) {
(sin(x), cos(x))
}
#[inline(never)]
#[must_use]
pub fn sinf(x: f32) -> f32 {
x.sin()
}
#[inline(never)]
#[must_use]
pub fn cosf(x: f32) -> f32 {
x.cos()
}
#[inline]
#[must_use]
pub fn sin_cosf(x: f32) -> (f32, f32) {
(sinf(x), cosf(x))
}
pub trait Trig: Copy {
#[must_use]
fn sin_det(self) -> Self;
#[must_use]
fn cos_det(self) -> Self;
#[must_use]
fn sin_cos_det(self) -> (Self, Self);
}
impl Trig for f64 {
#[inline]
fn sin_det(self) -> f64 {
sin(self)
}
#[inline]
fn cos_det(self) -> f64 {
cos(self)
}
#[inline]
fn sin_cos_det(self) -> (f64, f64) {
sin_cos(self)
}
}
impl Trig for f32 {
#[inline]
fn sin_det(self) -> f32 {
sinf(self)
}
#[inline]
fn cos_det(self) -> f32 {
cosf(self)
}
#[inline]
fn sin_cos_det(self) -> (f32, f32) {
sin_cosf(self)
}
}