pub trait Anglewhere
Self: Copy + Clone + PartialEq + PartialOrd + ApproxEq<Epsilon = Self::Unitless> + Neg<Output = Self> + Add<Self, Output = Self> + Sub<Self, Output = Self> + Rem<Self, Output = Self> + Mul<Self::Unitless, Output = Self> + Div<Self, Output = Self::Unitless> + Div<Self::Unitless, Output = Self>,{
type Unitless: BaseFloat;
Show 22 methods
// Required methods
fn new(value: Self::Unitless) -> Self;
fn zero() -> Self;
fn full_turn() -> Self;
fn turn_div_2() -> Self;
fn turn_div_3() -> Self;
fn turn_div_4() -> Self;
fn turn_div_6() -> Self;
fn sin(self) -> Self::Unitless;
fn cos(self) -> Self::Unitless;
fn tan(self) -> Self::Unitless;
fn sin_cos(self) -> (Self::Unitless, Self::Unitless);
fn asin(a: Self::Unitless) -> Self;
fn acos(a: Self::Unitless) -> Self;
fn atan(a: Self::Unitless) -> Self;
fn atan2(a: Self::Unitless, b: Self::Unitless) -> Self;
// Provided methods
fn normalize(self) -> Self { ... }
fn opposite(self) -> Self { ... }
fn bisect(self, other: Self) -> Self { ... }
fn equiv(&self, other: &Self) -> bool { ... }
fn cot(self) -> Self::Unitless { ... }
fn sec(self) -> Self::Unitless { ... }
fn csc(self) -> Self::Unitless { ... }
}
Expand description
Operations on angles.