[−][src]Struct euclid::Radians
An angle in radians
Fields
radians: T
Methods
impl<T> Angle<T>
[src]
impl<T> Angle<T> where
T: Trig,
[src]
T: Trig,
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]
T: Rem<Output = T> + Sub<Output = T> + Add<Output = T> + Zero + FloatConst + PartialOrd + Copy,
pub fn positive(&self) -> Self
[src]
Returns this angle in the [0..2*PI[ range.
pub fn signed(&self) -> Self
[src]
Returns this angle in the ]-PI..PI] range.
impl<T> Angle<T> where
T: Float,
[src]
T: Float,
impl<T> Angle<T> where
T: Zero,
[src]
T: Zero,
impl<T> Angle<T> where
T: FloatConst + Add<Output = T>,
[src]
T: FloatConst + Add<Output = T>,
pub fn pi() -> Self
[src]
pub fn two_pi() -> Self
[src]
pub fn frac_pi_2() -> Self
[src]
pub fn frac_pi_3() -> Self
[src]
pub fn frac_pi_4() -> Self
[src]
Trait Implementations
impl<T: PartialEq> PartialEq<Angle<T>> for Angle<T>
[src]
impl<T: Eq> Eq 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 lt(&self, other: &Angle<T>) -> bool
[src]
fn le(&self, other: &Angle<T>) -> bool
[src]
fn gt(&self, other: &Angle<T>) -> bool
[src]
fn ge(&self, other: &Angle<T>) -> bool
[src]
impl<T: Hash> Hash for Angle<T>
[src]
fn hash<__HT: Hasher>(&self, state: &mut __HT)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<T: Debug> Debug for Angle<T>
[src]
impl<T: Clone + Add<T, Output = T>> Add<Angle<T>> for Angle<T>
[src]
type Output = Angle<T>
The resulting type after applying the +
operator.
fn add(self, other: Angle<T>) -> Angle<T>
[src]
impl<T: Clone + Sub<T, Output = T>> Sub<Angle<T>> for Angle<T>
[src]
type Output = Angle<T>
The resulting type after applying the -
operator.
fn sub(self, other: Angle<T>) -> Self::Output
[src]
impl<T: Clone + Mul<T, Output = T>> Mul<T> for Angle<T>
[src]
type Output = Angle<T>
The resulting type after applying the *
operator.
fn mul(self, factor: T) -> Angle<T>
[src]
impl<T: Clone + Div<T, Output = T>> Div<Angle<T>> for Angle<T>
[src]
type Output = T
The resulting type after applying the /
operator.
fn div(self, other: Angle<T>) -> T
[src]
impl<T: Clone + Div<T, Output = T>> Div<T> for Angle<T>
[src]
type Output = Angle<T>
The resulting type after applying the /
operator.
fn div(self, factor: T) -> Angle<T>
[src]
impl<T: Neg<Output = T>> Neg for Angle<T>
[src]
impl<T: Clone + AddAssign<T>> AddAssign<Angle<T>> for Angle<T>
[src]
fn add_assign(&mut self, other: Angle<T>)
[src]
impl<T: Clone + SubAssign<T>> SubAssign<Angle<T>> for Angle<T>
[src]
fn sub_assign(&mut self, other: Angle<T>)
[src]
impl<T: Clone + MulAssign<T>> MulAssign<T> for Angle<T>
[src]
fn mul_assign(&mut self, factor: T)
[src]
impl<T: Clone + DivAssign<T>> DivAssign<T> for Angle<T>
[src]
fn div_assign(&mut self, factor: T)
[src]
impl<T: Copy> Copy for Angle<T>
[src]
impl<T: Clone> Clone for Angle<T>
[src]
Auto Trait Implementations
impl<T> Unpin for Angle<T> where
T: Unpin,
T: Unpin,
impl<T> Send for Angle<T> where
T: Send,
T: Send,
impl<T> Sync for Angle<T> where
T: Sync,
T: Sync,
impl<T> UnwindSafe for Angle<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T> RefUnwindSafe for Angle<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,