Struct euclid::TypedRotation2D [] [src]

#[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]

[src]

Creates a rotation from an angle in radians.

[src]

[src]

Creates the identity rotation.

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

[src]

Returns self.angle as a strongly typed Radians<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> + ApproxEq<T> + PartialOrd + Float + One + Zero
[src]

[src]

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

[src]

Returns the inverse of this rotation.

[src]

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

[src]

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

[src]

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.

[src]

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]

[src]

Returns the matrix representation of this rotation.

Trait Implementations

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

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

[src]

Measure the size of any heap-allocated structures that hang off this value, but not the space taken up by the value itself (i.e. what size_of:: measures, more or less); that space is handled by the implementation of HeapSizeOf for Box below. Read more

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

[src]

Deserialize this value from the given Serde deserializer. Read more

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

[src]

Serialize this value into the given Serde serializer. Read more

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

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

[src]

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

1.0.0
[src]

This method tests for !=.

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

[src]

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

1.3.0
[src]

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