Struct pax_pixels::Angle
pub struct Angle<T> {
pub radians: T,
}Expand description
An angle in radians
Fields§
§radians: TImplementations§
§impl<T> Angle<T>where
T: Trig,
impl<T> Angle<T>where T: Trig,
pub fn degrees(deg: T) -> Angle<T>
pub fn to_degrees(self) -> T
§impl<T> Angle<T>where
T: Sub<Output = T> + Rem<Output = T> + Add<Output = T> + Zero + FloatConst + PartialOrd + Copy,
impl<T> Angle<T>where T: Sub<Output = T> + Rem<Output = T> + Add<Output = T> + Zero + FloatConst + PartialOrd + Copy,
§impl<T> Angle<T>where
T: Rem<Output = T> + Sub<Output = T> + Add<Output = T> + Mul<Output = T> + One + FloatConst + Copy,
impl<T> Angle<T>where T: Rem<Output = T> + Sub<Output = T> + Add<Output = T> + Mul<Output = T> + One + FloatConst + Copy,
§impl<T> Angle<T>where
T: FloatConst + Add<Output = T>,
impl<T> Angle<T>where T: FloatConst + Add<Output = T>,
Trait Implementations§
§impl<T> AddAssign for Angle<T>where
T: AddAssign,
impl<T> AddAssign for Angle<T>where T: AddAssign,
§fn add_assign(&mut self, other: Angle<T>)
fn add_assign(&mut self, other: Angle<T>)
Performs the
+= operation. Read more§impl<T> ApproxEq<T> for Angle<T>where
T: ApproxEq<T>,
impl<T> ApproxEq<T> for Angle<T>where T: ApproxEq<T>,
§fn approx_epsilon() -> T
fn approx_epsilon() -> T
Default epsilon value
§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 is this object is approximately equal to the other one, using
a provided epsilon value.§impl<T> DivAssign<T> for Angle<T>where
T: DivAssign,
impl<T> DivAssign<T> for Angle<T>where T: DivAssign,
§fn div_assign(&mut self, factor: T)
fn div_assign(&mut self, factor: T)
Performs the
/= operation. Read more§impl<T> MulAssign<T> for Angle<T>where
T: MulAssign,
impl<T> MulAssign<T> for Angle<T>where T: MulAssign,
§fn mul_assign(&mut self, factor: T)
fn mul_assign(&mut self, factor: T)
Performs the
*= operation. Read more§impl<T> PartialOrd for Angle<T>where
T: PartialOrd,
impl<T> PartialOrd for Angle<T>where T: PartialOrd,
§fn partial_cmp(&self, other: &Angle<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &Angle<T>) -> Option<Ordering>
1.0.0 · source§fn 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§impl<T> SubAssign for Angle<T>where
T: SubAssign,
impl<T> SubAssign for Angle<T>where T: SubAssign,
§fn sub_assign(&mut self, other: Angle<T>)
fn sub_assign(&mut self, other: Angle<T>)
Performs the
-= operation. Read moreimpl<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§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.