pub struct Rotation2<T> { /* private fields */ }
Expand description
Two-dimensional rotation.
Implementations
sourceimpl<T> Rotation2<T>
impl<T> Rotation2<T>
pub fn from_complex(comp: Complex<T>) -> Self
pub fn into_complex(self) -> Complex<T>
Trait Implementations
sourceimpl<T> AbsDiffEq<Rotation2<T>> for Rotation2<T> where
T: AbsDiffEq<Epsilon = T> + Copy,
impl<T> AbsDiffEq<Rotation2<T>> for Rotation2<T> where
T: AbsDiffEq<Epsilon = T> + Copy,
type Epsilon = T
type Epsilon = T
Used for specifying relative comparisons.
sourcefn default_epsilon() -> Self::Epsilon
fn default_epsilon() -> Self::Epsilon
The default tolerance to use when testing values that are close together. Read more
sourcefn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
A test for equality that uses the absolute difference to compute the approximate equality of two numbers. Read more
sourcefn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
The inverse of AbsDiffEq::abs_diff_eq
.
sourceimpl<T> Directional<Vector<T, 2_usize>> for Rotation2<T> where
Self: Transform<Vector<T, 2>>,
impl<T> Directional<Vector<T, 2_usize>> for Rotation2<T> where
Self: Transform<Vector<T, 2>>,
sourceimpl<T> Distribution<Rotation2<T>> for Uniform where
RangedUniform<T>: Distribution<T>,
T: SampleUniform + Float + FloatConst + NumCast,
impl<T> Distribution<Rotation2<T>> for Uniform where
RangedUniform<T>: Distribution<T>,
T: SampleUniform + Float + FloatConst + NumCast,
sourcefn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Rotation2<T>
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Rotation2<T>
Generate a random value of T
, using rng
as the source of randomness.
sourcefn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Create an iterator that generates random values of T
, using rng
as
the source of randomness. Read more
sourceimpl<T> Reorder<Rotation2<T>, Vector<T, 2_usize>> for Shift<T, 2> where
Rotation2<T>: Transform<Vector<T, 2>> + Copy,
Self: Transform<Vector<T, 2>>,
impl<T> Reorder<Rotation2<T>, Vector<T, 2_usize>> for Shift<T, 2> where
Rotation2<T>: Transform<Vector<T, 2>> + Copy,
Self: Transform<Vector<T, 2>>,
sourceimpl<T> Reorder<Shift<T, 2_usize>, Vector<T, 2_usize>> for Rotation2<T> where
Self: Transform<Vector<T, 2>>,
Shift<T, 2>: Transform<Vector<T, 2>>,
impl<T> Reorder<Shift<T, 2_usize>, Vector<T, 2_usize>> for Rotation2<T> where
Self: Transform<Vector<T, 2>>,
Shift<T, 2>: Transform<Vector<T, 2>>,
sourceimpl<T> Transform<Vector<T, 2_usize>> for Rotation2<T> where
T: Neg<Output = T> + Num + Copy,
impl<T> Transform<Vector<T, 2_usize>> for Rotation2<T> where
T: Neg<Output = T> + Num + Copy,
impl<T: Copy> Copy for Rotation2<T>
impl<T> StructuralPartialEq for Rotation2<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Rotation2<T> where
T: RefUnwindSafe,
impl<T> Send for Rotation2<T> where
T: Send,
impl<T> Sync for Rotation2<T> where
T: Sync,
impl<T> Unpin for Rotation2<T> where
T: Unpin,
impl<T> UnwindSafe for Rotation2<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more