Struct vecmat::transform::Rotation2 [−][src]
Two-dimensional rotation.
Implementations
impl<T> Rotation2<T>
[src]
pub fn from_complex(comp: Complex<T>) -> Self
[src]
pub fn into_complex(self) -> Complex<T>
[src]
impl<T> Rotation2<T> where
T: Float,
[src]
T: Float,
impl<T> Rotation2<T> where
T: Neg<Output = T> + Copy,
[src]
T: Neg<Output = T> + Copy,
Trait Implementations
impl<T> AbsDiffEq<Rotation2<T>> for Rotation2<T> where
T: AbsDiffEq<Epsilon = T> + Copy,
[src]
T: AbsDiffEq<Epsilon = T> + Copy,
type Epsilon = T
Used for specifying relative comparisons.
fn default_epsilon() -> Self::Epsilon
[src]
fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
[src]
pub fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
[src]
impl<T: Clone> Clone for Rotation2<T>
[src]
impl<T: Copy> Copy for Rotation2<T>
[src]
impl<T: Debug> Debug for Rotation2<T>
[src]
impl<T> Distribution<Rotation2<T>> for Uniform where
RangedUniform<T>: Distribution<T>,
T: SampleUniform + Float + FloatConst + NumCast,
[src]
RangedUniform<T>: Distribution<T>,
T: SampleUniform + Float + FloatConst + NumCast,
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Rotation2<T>
[src]
pub fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
[src]
R: Rng,
impl<T> From<Complex<T>> for Rotation2<T>
[src]
impl<T> From<Rotation2<T>> for Complex<T>
[src]
impl<T: PartialEq> PartialEq<Rotation2<T>> for Rotation2<T>
[src]
impl<T> StructuralPartialEq for Rotation2<T>
[src]
impl<T> Transform<T, 2_usize> for Rotation2<T> where
T: Neg<Output = T> + Num + Copy,
[src]
T: Neg<Output = T> + Num + Copy,
Auto Trait Implementations
impl<T> RefUnwindSafe for Rotation2<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Rotation2<T> where
T: Send,
T: Send,
impl<T> Sync for Rotation2<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Rotation2<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Rotation2<T> where
T: UnwindSafe,
T: 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,
pub 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,