[−][src]Enum tge::math::Angle
Variants
Implementations
impl<F: Float> Angle<F>
[src]
pub fn radians(value: F) -> Self
[src]
pub fn degrees(value: F) -> Self
[src]
pub fn n_pi(n: F) -> Self
[src]
pub fn zero() -> Self
[src]
pub fn value(&self) -> F
[src]
pub fn set_value(&mut self, new_value: F)
[src]
pub fn radians_value(&self) -> F
[src]
pub fn degrees_value(&self) -> F
[src]
pub fn to_degrees(&self) -> Self
[src]
pub fn to_radians(&self) -> Self
[src]
Trait Implementations
impl<F: Float> Add<Angle<F>> for Angle<F>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: Self) -> Self::Output
[src]
impl<F: Float> AddAssign<Angle<F>> for Angle<F>
[src]
fn add_assign(&mut self, other: Self)
[src]
impl<F: Clone + Float> Clone for Angle<F>
[src]
impl<F: Copy + Float> Copy for Angle<F>
[src]
impl<F: Debug + Float> Debug for Angle<F>
[src]
impl<F: Float> Div<F> for Angle<F>
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: F) -> Self::Output
[src]
impl<F: Float> DivAssign<F> for Angle<F>
[src]
fn div_assign(&mut self, rhs: F)
[src]
impl<F: Float> Mul<F> for Angle<F>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: F) -> Self::Output
[src]
impl<F: Float> MulAssign<F> for Angle<F>
[src]
fn mul_assign(&mut self, rhs: F)
[src]
impl<F: Float> PartialEq<Angle<F>> for Angle<F>
[src]
impl<F: Float> PartialOrd<Angle<F>> for Angle<F>
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<F: Float> Sub<Angle<F>> for Angle<F>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: Self) -> Self::Output
[src]
impl<F: Float> SubAssign<Angle<F>> for Angle<F>
[src]
fn sub_assign(&mut self, other: Self)
[src]
Auto Trait Implementations
impl<F> RefUnwindSafe for Angle<F> where
F: RefUnwindSafe,
F: RefUnwindSafe,
impl<F> Send for Angle<F> where
F: Send,
F: Send,
impl<F> Sync for Angle<F> where
F: Sync,
F: Sync,
impl<F> Unpin for Angle<F> where
F: Unpin,
F: Unpin,
impl<F> UnwindSafe for Angle<F> where
F: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,