pub struct Deg<S> {
pub s: S,
}
Expand description
An angle, in degrees
Fields§
§s: S
Trait Implementations§
source§impl<S: BaseFloat> Angle for Deg<S>
impl<S: BaseFloat> Angle for Deg<S>
type Unitless = S
fn zero() -> Deg<S>
fn full_turn() -> Deg<S>
fn turn_div_2() -> Deg<S>
fn turn_div_3() -> Deg<S>
fn turn_div_4() -> Deg<S>
fn turn_div_6() -> Deg<S>
fn sin(self) -> S
fn cos(self) -> S
fn tan(self) -> S
fn sin_cos(self) -> (S, S)
fn asin(a: S) -> Deg<S>
fn acos(a: S) -> Deg<S>
fn atan(a: S) -> Deg<S>
fn atan2(a: S, b: S) -> Deg<S>
fn equiv(&self, other: &Self) -> bool
fn cot(self) -> Self::Unitless
fn sec(self) -> Self::Unitless
fn csc(self) -> Self::Unitless
source§impl<S: PartialEq> PartialEq<Deg<S>> for Deg<S>
impl<S: PartialEq> PartialEq<Deg<S>> for Deg<S>
source§impl<S: PartialOrd> PartialOrd<Deg<S>> for Deg<S>
impl<S: PartialOrd> PartialOrd<Deg<S>> for Deg<S>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<S: Copy> Copy for Deg<S>
impl<S> StructuralPartialEq for Deg<S>
Auto Trait Implementations§
impl<S> RefUnwindSafe for Deg<S>where S: RefUnwindSafe,
impl<S> Send for Deg<S>where S: Send,
impl<S> Sync for Deg<S>where S: Sync,
impl<S> Unpin for Deg<S>where S: Unpin,
impl<S> UnwindSafe for Deg<S>where S: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more