Struct vecmat::transform::Rotation2 [−][src]
pub struct Rotation2<T> { /* fields omitted */ }
Two-dimensional rotation.
Implementations
impl<T> Rotation2<T>
[src]
impl<T> Rotation2<T>
[src]pub fn from_complex(comp: Complex<T>) -> Self
[src]
pub fn into_complex(self) -> Complex<T>
[src]
Trait Implementations
impl<T> AbsDiffEq<Rotation2<T>> for Rotation2<T> where
T: AbsDiffEq<Epsilon = T> + Copy,
[src]
impl<T> AbsDiffEq<Rotation2<T>> for Rotation2<T> where
T: AbsDiffEq<Epsilon = T> + Copy,
[src]type Epsilon = T
type Epsilon = T
Used for specifying relative comparisons.
fn default_epsilon() -> Self::Epsilon
[src]
fn default_epsilon() -> Self::Epsilon
[src]The default tolerance to use when testing values that are close together. Read more
fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
[src]
fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
[src]A test for equality that uses the absolute difference to compute the approximate equality of two numbers. Read more
fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
[src]
fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
[src]The inverse of AbsDiffEq::abs_diff_eq
.
impl<T> Directional<Vector<T, 2_usize>> for Rotation2<T> where
Self: Transform<Vector<T, 2>>,
[src]
impl<T> Directional<Vector<T, 2_usize>> for Rotation2<T> where
Self: Transform<Vector<T, 2>>,
[src]impl<T> Distribution<Rotation2<T>> for Uniform where
RangedUniform<T>: Distribution<T>,
T: SampleUniform + Float + FloatConst + NumCast,
[src]
impl<T> Distribution<Rotation2<T>> for Uniform where
RangedUniform<T>: Distribution<T>,
T: SampleUniform + Float + FloatConst + NumCast,
[src]fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Rotation2<T>
[src]
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Rotation2<T>
[src]Generate a random value of T
, using rng
as the source of randomness.
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
[src]
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
[src]Create an iterator that generates random values of T
, using rng
as
the source of randomness. Read more
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>>,
[src]
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>>,
[src]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>>,
[src]
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>>,
[src]impl<T> Transform<Vector<T, 2_usize>> for Rotation2<T> where
T: Neg<Output = T> + Num + Copy,
[src]
impl<T> Transform<Vector<T, 2_usize>> for Rotation2<T> where
T: Neg<Output = T> + Num + Copy,
[src]impl<T: Copy> Copy for Rotation2<T>
[src]
impl<T> StructuralPartialEq for Rotation2<T>
[src]
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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,