[][src]Struct euclid::TypedRotation2D

#[repr(C)]
pub struct TypedRotation2D<T, Src, Dst> { pub angle: T, // some fields omitted }

A transform that can represent rotations in 2d, represented as an angle in radians.

Fields

Methods

impl<T, Src, Dst> TypedRotation2D<T, Src, Dst>
[src]

Creates a rotation from an angle in radians.

Creates the identity rotation.

impl<T, Src, Dst> TypedRotation2D<T, Src, Dst> where
    T: Clone
[src]

Returns self.angle as a strongly typed Angle<T>.

impl<T, Src, Dst> TypedRotation2D<T, Src, Dst> where
    T: Copy + Clone + Add<T, Output = T> + Sub<T, Output = T> + Mul<T, Output = T> + Div<T, Output = T> + Neg<Output = T> + PartialOrd + Float + One + Zero
[src]

Creates a 3d rotation (around the z axis) from this 2d rotation.

Returns the inverse of this rotation.

Returns a rotation representing the other rotation followed by this rotation.

Returns a rotation representing this rotation followed by the other rotation.

Returns the given 2d point transformed by this rotation.

The input point must be use the unit Src, and the returned point has the unit Dst.

Returns the given 2d vector transformed by this rotation.

The input point must be use the unit Src, and the returned point has the unit Dst.

impl<T, Src, Dst> TypedRotation2D<T, Src, Dst> where
    T: Copy + Clone + Add<T, Output = T> + Mul<T, Output = T> + Div<T, Output = T> + Sub<T, Output = T> + Trig + PartialOrd + One + Zero
[src]

Returns the matrix representation of this rotation.

Trait Implementations

impl<T, Src, Dst> PartialEq<TypedRotation2D<T, Src, Dst>> for TypedRotation2D<T, Src, Dst> where
    T: PartialEq
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T, Src, Dst> Eq for TypedRotation2D<T, Src, Dst> where
    T: Eq
[src]

impl<T, Src, Dst> Hash for TypedRotation2D<T, Src, Dst> where
    T: Hash
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<T: Copy, Src, Dst> Copy for TypedRotation2D<T, Src, Dst>
[src]

impl<T: Clone, Src, Dst> Clone for TypedRotation2D<T, Src, Dst>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T, Src, Dst> Serialize for TypedRotation2D<T, Src, Dst> where
    T: Serialize
[src]

Serialize this value into the given Serde serializer. Read more

impl<'de, T, Src, Dst> Deserialize<'de> for TypedRotation2D<T, Src, Dst> where
    T: Deserialize<'de>, 
[src]

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

impl<T, Src, Dst> Send for TypedRotation2D<T, Src, Dst> where
    Dst: Send,
    Src: Send,
    T: Send

impl<T, Src, Dst> Sync for TypedRotation2D<T, Src, Dst> where
    Dst: Sync,
    Src: Sync,
    T: Sync

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Performs the conversion.

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

Immutably borrows from an owned value. Read more

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

Mutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

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

Creates owned data from borrowed data, usually by cloning. Read more

🔬 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<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]