#[repr(C)]pub struct Rad<S>(pub S);
Expand description
An angle, in radians.
This type is marked as #[repr(C)]
.
Tuple Fields§
§0: S
Trait Implementations§
source§impl<S: BaseFloat> AbsDiffEq<Rad<S>> for Rad<S>
impl<S: BaseFloat> AbsDiffEq<Rad<S>> for Rad<S>
source§fn default_epsilon() -> S::Epsilon
fn default_epsilon() -> S::Epsilon
The default tolerance to use when testing values that are close together. Read more
source§impl<S: BaseFloat + AddAssign<S>> AddAssign<Rad<S>> for Rad<S>
impl<S: BaseFloat + AddAssign<S>> AddAssign<Rad<S>> for Rad<S>
source§fn add_assign(&mut self, other: Rad<S>)
fn add_assign(&mut self, other: Rad<S>)
Performs the
+=
operation. Read moresource§impl<S: BaseFloat> Angle for Rad<S>
impl<S: BaseFloat> Angle for Rad<S>
type Unitless = S
source§fn sin_cos(self) -> (S, S)
fn sin_cos(self) -> (S, S)
Compute the sine and cosine of the angle, returning the result as a
pair. Read more
source§fn asin(a: S) -> Rad<S>
fn asin(a: S) -> Rad<S>
Compute the arcsine of the ratio, returning the resulting angle. Read more
source§fn acos(a: S) -> Rad<S>
fn acos(a: S) -> Rad<S>
Compute the arccosine of the ratio, returning the resulting angle. Read more
source§fn atan(a: S) -> Rad<S>
fn atan(a: S) -> Rad<S>
Compute the arctangent of the ratio, returning the resulting angle. Read more
fn atan2(a: S, b: S) -> Rad<S>
source§fn normalize_signed(self) -> Self
fn normalize_signed(self) -> Self
Return the angle, normalized to the range
[-turn_div_2, turn_div_2)
.source§fn turn_div_2() -> Self
fn turn_div_2() -> Self
Half of a full rotation.
source§fn turn_div_3() -> Self
fn turn_div_3() -> Self
A third of a full rotation.
source§fn turn_div_4() -> Self
fn turn_div_4() -> Self
A quarter of a full rotation.
source§fn turn_div_6() -> Self
fn turn_div_6() -> Self
A sixth of a full rotation.
source§impl<S> Distribution<Rad<S>> for Standardwhere
Standard: Distribution<S>,
S: BaseFloat + SampleUniform,
impl<S> Distribution<Rad<S>> for Standardwhere Standard: Distribution<S>, S: BaseFloat + SampleUniform,
source§impl<S: BaseFloat + DivAssign<S>> DivAssign<S> for Rad<S>
impl<S: BaseFloat + DivAssign<S>> DivAssign<S> for Rad<S>
source§fn div_assign(&mut self, scalar: S)
fn div_assign(&mut self, scalar: S)
Performs the
/=
operation. Read moresource§impl<S: BaseFloat + MulAssign<S>> MulAssign<S> for Rad<S>
impl<S: BaseFloat + MulAssign<S>> MulAssign<S> for Rad<S>
source§fn mul_assign(&mut self, scalar: S)
fn mul_assign(&mut self, scalar: S)
Performs the
*=
operation. Read moresource§impl<S: PartialEq> PartialEq<Rad<S>> for Rad<S>
impl<S: PartialEq> PartialEq<Rad<S>> for Rad<S>
source§impl<S: PartialOrd> PartialOrd<Rad<S>> for Rad<S>
impl<S: PartialOrd> PartialOrd<Rad<S>> for Rad<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 moresource§impl<S: BaseFloat> RelativeEq<Rad<S>> for Rad<S>
impl<S: BaseFloat> RelativeEq<Rad<S>> for Rad<S>
source§fn default_max_relative() -> S::Epsilon
fn default_max_relative() -> S::Epsilon
The default relative tolerance for testing values that are far-apart. Read more
source§impl<S: BaseFloat + RemAssign<S>> RemAssign<Rad<S>> for Rad<S>
impl<S: BaseFloat + RemAssign<S>> RemAssign<Rad<S>> for Rad<S>
source§fn rem_assign(&mut self, other: Rad<S>)
fn rem_assign(&mut self, other: Rad<S>)
Performs the
%=
operation. Read moresource§impl<S: BaseFloat + SubAssign<S>> SubAssign<Rad<S>> for Rad<S>
impl<S: BaseFloat + SubAssign<S>> SubAssign<Rad<S>> for Rad<S>
source§fn sub_assign(&mut self, other: Rad<S>)
fn sub_assign(&mut self, other: Rad<S>)
Performs the
-=
operation. Read moresource§impl<S: BaseFloat> UlpsEq<Rad<S>> for Rad<S>
impl<S: BaseFloat> UlpsEq<Rad<S>> for Rad<S>
impl<S: Copy> Copy for Rad<S>
impl<S> StructuralPartialEq for Rad<S>
Auto Trait Implementations§
impl<S> RefUnwindSafe for Rad<S>where S: RefUnwindSafe,
impl<S> Send for Rad<S>where S: Send,
impl<S> Sync for Rad<S>where S: Sync,
impl<S> Unpin for Rad<S>where S: Unpin,
impl<S> UnwindSafe for Rad<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