Struct euclid::Angle [−][src]
pub struct Angle<T> { pub radians: T, }
Expand description
An angle in radians
Fields
radians: T
Implementations
impl<T> Angle<T> where
T: Trig,
[src]
impl<T> Angle<T> where
T: Trig,
[src]pub fn degrees(deg: T) -> Self
[src]
pub fn to_degrees(self) -> T
[src]
impl<T> Angle<T> where
T: Rem<Output = T> + Sub<Output = T> + Add<Output = T> + Zero + FloatConst + PartialOrd + Copy,
[src]
impl<T> Angle<T> where
T: Rem<Output = T> + Sub<Output = T> + Add<Output = T> + Zero + FloatConst + PartialOrd + Copy,
[src]impl<T> Angle<T> where
T: Rem<Output = T> + Mul<Output = T> + Sub<Output = T> + Add<Output = T> + One + FloatConst + Copy,
[src]
impl<T> Angle<T> where
T: Rem<Output = T> + Mul<Output = T> + Sub<Output = T> + Add<Output = T> + One + FloatConst + Copy,
[src]impl<T> Angle<T> where
T: FloatConst + Add<Output = T>,
[src]
impl<T> Angle<T> where
T: FloatConst + Add<Output = T>,
[src]impl<T> Angle<T> where
T: NumCast + Copy,
[src]
impl<T> Angle<T> where
T: NumCast + Copy,
[src]Trait Implementations
impl<T: AddAssign<T>> AddAssign<Angle<T>> for Angle<T>
[src]
impl<T: AddAssign<T>> AddAssign<Angle<T>> for Angle<T>
[src]fn add_assign(&mut self, other: Angle<T>)
[src]
fn add_assign(&mut self, other: Angle<T>)
[src]Performs the +=
operation. Read more
impl<T: ApproxEq<T>> ApproxEq<T> for Angle<T>
[src]
impl<T: ApproxEq<T>> ApproxEq<T> for Angle<T>
[src]fn approx_epsilon() -> T
[src]
fn approx_epsilon() -> T
[src]Default epsilon value
impl<T: DivAssign<T>> DivAssign<T> for Angle<T>
[src]
impl<T: DivAssign<T>> DivAssign<T> for Angle<T>
[src]fn div_assign(&mut self, factor: T)
[src]
fn div_assign(&mut self, factor: T)
[src]Performs the /=
operation. Read more
impl<T: MulAssign<T>> MulAssign<T> for Angle<T>
[src]
impl<T: MulAssign<T>> MulAssign<T> for Angle<T>
[src]fn mul_assign(&mut self, factor: T)
[src]
fn mul_assign(&mut self, factor: T)
[src]Performs the *=
operation. Read more
impl<T: PartialOrd> PartialOrd<Angle<T>> for Angle<T>
[src]
impl<T: PartialOrd> PartialOrd<Angle<T>> for Angle<T>
[src]fn partial_cmp(&self, other: &Angle<T>) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Angle<T>) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<T: SubAssign<T>> SubAssign<Angle<T>> for Angle<T>
[src]
impl<T: SubAssign<T>> SubAssign<Angle<T>> for Angle<T>
[src]fn sub_assign(&mut self, other: Angle<T>)
[src]
fn sub_assign(&mut self, other: Angle<T>)
[src]Performs the -=
operation. Read more
impl<T: Copy> Copy for Angle<T>
[src]
impl<T: Eq> Eq for Angle<T>
[src]
impl<T> StructuralEq for Angle<T>
[src]
impl<T> StructuralPartialEq for Angle<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Angle<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Angle<T> where
T: Send,
T: Send,
impl<T> Sync for Angle<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Angle<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Angle<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more