pub struct Angle<T> {
pub radians: T,
}
Expand description
An angle in radians
Fields§
§radians: T
Implementations§
source§impl<T> Angle<T>where
T: Trig,
impl<T> Angle<T>where
T: Trig,
pub fn degrees(deg: T) -> Self
pub fn to_degrees(self) -> T
source§impl<T> Angle<T>where
T: Rem<Output = T> + Sub<Output = T> + Add<Output = T> + Zero + FloatConst + PartialOrd + Copy,
impl<T> Angle<T>where
T: Rem<Output = T> + Sub<Output = T> + Add<Output = T> + Zero + FloatConst + PartialOrd + Copy,
source§impl<T> Angle<T>where
T: FloatConst + Add<Output = T>,
impl<T> Angle<T>where
T: FloatConst + Add<Output = T>,
Trait Implementations§
source§impl<T: AddAssign<T>> AddAssign for Angle<T>
impl<T: AddAssign<T>> AddAssign for Angle<T>
source§fn add_assign(&mut self, other: Angle<T>)
fn add_assign(&mut self, other: Angle<T>)
Performs the
+=
operation. Read moresource§impl<T: ApproxEq<T>> ApproxEq<T> for Angle<T>
impl<T: ApproxEq<T>> ApproxEq<T> for Angle<T>
source§fn approx_epsilon() -> T
fn approx_epsilon() -> T
Default epsilon value
source§fn approx_eq_eps(&self, other: &Angle<T>, approx_epsilon: &T) -> bool
fn approx_eq_eps(&self, other: &Angle<T>, approx_epsilon: &T) -> bool
Returns
true
if this object is approximately equal to the other one, using
a provided epsilon value.source§fn approx_eq(&self, other: &Self) -> bool
fn approx_eq(&self, other: &Self) -> bool
Returns
true
if this object is approximately equal to the other one, using
the approx_epsilon
epsilon value.source§impl<'de, T> Deserialize<'de> for Angle<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Angle<T>where
T: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T: DivAssign<T>> DivAssign<T> for Angle<T>
impl<T: DivAssign<T>> DivAssign<T> for Angle<T>
source§fn div_assign(&mut self, factor: T)
fn div_assign(&mut self, factor: T)
Performs the
/=
operation. Read moresource§impl<T: MulAssign<T>> MulAssign<T> for Angle<T>
impl<T: MulAssign<T>> MulAssign<T> for Angle<T>
source§fn mul_assign(&mut self, factor: T)
fn mul_assign(&mut self, factor: T)
Performs the
*=
operation. Read moresource§impl<T: PartialOrd> PartialOrd for Angle<T>
impl<T: PartialOrd> PartialOrd for Angle<T>
source§impl<T: SubAssign<T>> SubAssign for Angle<T>
impl<T: SubAssign<T>> SubAssign for Angle<T>
source§fn sub_assign(&mut self, other: Angle<T>)
fn sub_assign(&mut self, other: Angle<T>)
Performs the
-=
operation. Read moreimpl<T: Copy> Copy for Angle<T>
impl<T: Eq> Eq for Angle<T>
impl<T> StructuralPartialEq for Angle<T>
Auto Trait Implementations§
impl<T> Freeze for Angle<T>where
T: Freeze,
impl<T> RefUnwindSafe for Angle<T>where
T: RefUnwindSafe,
impl<T> Send for Angle<T>where
T: Send,
impl<T> Sync for Angle<T>where
T: Sync,
impl<T> Unpin for Angle<T>where
T: Unpin,
impl<T> UnwindSafe for Angle<T>where
T: 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)