pub struct Angle<T> {
pub radians: T,
}
Expand description
An angle in radians. An angle in radians
Fields
radians: T
Implementations
sourceimpl<T> Angle<T> where
T: Trig,
impl<T> Angle<T> where
T: Trig,
An angle in radians.
pub fn degrees(deg: T) -> Angle<T>
pub fn to_degrees(self) -> T
sourceimpl<T> Angle<T> where
T: Add<T, Output = T> + Zero + FloatConst + PartialOrd<T> + Copy + Rem<T, Output = T> + Sub<T, Output = T>,
impl<T> Angle<T> where
T: Add<T, Output = T> + Zero + FloatConst + PartialOrd<T> + Copy + Rem<T, Output = T> + Sub<T, Output = T>,
An angle in radians.
sourceimpl<T> Angle<T> where
T: Add<T, Output = T> + One<Output = T> + FloatConst + Copy + Rem<T, Output = T> + Mul<T> + Sub<T, Output = T>,
impl<T> Angle<T> where
T: Add<T, Output = T> + One<Output = T> + FloatConst + Copy + Rem<T, Output = T> + Mul<T> + Sub<T, Output = T>,
An angle in radians.
sourceimpl<T> Angle<T> where
T: FloatConst + Add<T, Output = T>,
impl<T> Angle<T> where
T: FloatConst + Add<T, Output = T>,
An angle in radians.
sourceimpl<T> Angle<T> where
T: NumCast + Copy,
impl<T> Angle<T> where
T: NumCast + Copy,
An angle in radians.
Trait Implementations
sourceimpl<T> AddAssign<Angle<T>> for Angle<T> where
T: AddAssign<T>,
impl<T> AddAssign<Angle<T>> for Angle<T> where
T: AddAssign<T>,
sourcefn add_assign(&mut self, other: Angle<T>)
fn add_assign(&mut self, other: Angle<T>)
Performs the +=
operation. Read more
sourceimpl<T> ApproxEq<T> for Angle<T> where
T: ApproxEq<T>,
impl<T> ApproxEq<T> for Angle<T> where
T: ApproxEq<T>,
sourcefn approx_epsilon() -> T
fn approx_epsilon() -> T
Default epsilon value
sourceimpl<T> DivAssign<T> for Angle<T> where
T: DivAssign<T>,
impl<T> DivAssign<T> for Angle<T> where
T: DivAssign<T>,
sourcefn div_assign(&mut self, factor: T)
fn div_assign(&mut self, factor: T)
Performs the /=
operation. Read more
sourceimpl<T> MulAssign<T> for Angle<T> where
T: MulAssign<T>,
impl<T> MulAssign<T> for Angle<T> where
T: MulAssign<T>,
sourcefn mul_assign(&mut self, factor: T)
fn mul_assign(&mut self, factor: T)
Performs the *=
operation. Read more
sourceimpl<T> PartialOrd<Angle<T>> for Angle<T> where
T: PartialOrd<T>,
impl<T> PartialOrd<Angle<T>> for Angle<T> where
T: PartialOrd<T>,
sourcefn partial_cmp(&self, other: &Angle<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &Angle<T>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl<T> SubAssign<Angle<T>> for Angle<T> where
T: SubAssign<T>,
impl<T> SubAssign<Angle<T>> for Angle<T> where
T: SubAssign<T>,
sourcefn sub_assign(&mut self, other: Angle<T>)
fn sub_assign(&mut self, other: Angle<T>)
Performs the -=
operation. Read more
impl<T> Copy for Angle<T> where
T: Copy,
impl<T> Eq for Angle<T> where
T: Eq,
impl<T> StructuralEq for Angle<T>
impl<T> StructuralPartialEq for Angle<T>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more