Struct vecmat::transform::Rotation2[][src]

pub struct Rotation2<T> { /* fields omitted */ }

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]

pub fn new(angle: T) -> Self[src]

pub fn angle(&self) -> T[src]

impl<T> Rotation2<T> where
    T: Neg<Output = T> + Copy
[src]

pub fn to_linear(self) -> Linear<T, 2>[src]

Trait Implementations

impl<T> AbsDiffEq<Rotation2<T>> for Rotation2<T> where
    T: AbsDiffEq<Epsilon = T> + Copy
[src]

type Epsilon = T

Used for specifying relative comparisons.

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]

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]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,