Struct nalgebra::Rotation2 [] [src]

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

Two dimensional rotation matrix.

Methods

impl<N: Clone + BaseFloat + Neg<Output=N>> Rotation2<N>
[src]

Builds a 2 dimensional rotation matrix from an angle in radian.

impl<N> Rotation2<N>
[src]

This rotation's underlying matrix.

Trait Implementations

impl<N: Eq> Eq for Rotation2<N>
[src]

impl<N: PartialEq> PartialEq for Rotation2<N>
[src]

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

This method tests for !=.

impl<N: Encodable> Encodable for Rotation2<N>
[src]

impl<N: Decodable> Decodable for Rotation2<N>
[src]

impl<N: Clone> Clone for Rotation2<N>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<N: Debug> Debug for Rotation2<N>
[src]

Formats the value using the given formatter.

impl<N: Hash> Hash for Rotation2<N>
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl<N: Copy> Copy for Rotation2<N>
[src]

impl<N: BaseFloat + Clone> Rotation<Vector1<N>> for Rotation2<N>
[src]

Gets the rotation associated with self.

Gets the inverse rotation associated with self.

Appends a rotation to this object.

Appends the rotation amount to a copy of t.

Prepends a rotation to this object.

Prepends the rotation amount to a copy of t.

Sets the rotation of self.

impl<N: BaseFloat> RotationTo for Rotation2<N>
[src]

Type of the angle between two elements.

Type of the rotation between two elements.

Computes an angle nedded to transform the first element to the second one using a rotation. Read more

Computes the smallest rotation needed to transform the first element to the second one.

impl<N: Rand + BaseFloat> Rand for Rotation2<N>
[src]

Generates a random instance of this type using the specified source of randomness. Read more

impl<N: BaseFloat> AbsoluteRotate<Vector2<N>> for Rotation2<N>
[src]

This is the same as: Read more

impl<N: BaseNum> Rotate<Vector2<N>> for Rotation2<N>
[src]

Applies a rotation to v.

Applies an inverse rotation to v.

impl<N: BaseNum> Rotate<Point2<N>> for Rotation2<N>
[src]

Applies a rotation to v.

Applies an inverse rotation to v.

impl<N: BaseNum> Transform<Vector2<N>> for Rotation2<N>
[src]

Applies a transformation to v.

Applies an inverse transformation to v.

impl<N: BaseNum> Transform<Point2<N>> for Rotation2<N>
[src]

Applies a transformation to v.

Applies an inverse transformation to v.

impl<N> Dimension for Rotation2<N>
[src]

The dimension of the object.

impl<N: BaseNum> Mul<Rotation2<N>> for Rotation2<N>
[src]

The resulting type after applying the * operator

The method for the * operator

impl<N: Copy + BaseNum> MulAssign<Rotation2<N>> for Rotation2<N>
[src]

The method for the *= operator

impl<N: BaseNum> Mul<Vector2<N>> for Rotation2<N>
[src]

The resulting type after applying the * operator

The method for the * operator

impl<N: BaseNum> Mul<Point2<N>> for Rotation2<N>
[src]

The resulting type after applying the * operator

The method for the * operator

impl<N: BaseNum> One for Rotation2<N>
[src]

Returns the multiplicative identity element of Self, 1. Read more

impl<N: BaseNum> Eye for Rotation2<N>
[src]

Return the identity matrix of specified dimension

impl<N: Zero + BaseNum + Cast<f64> + BaseFloat> RotationMatrix<N, Vector2<N>, Vector1<N>> for Rotation2<N>
[src]

The output rotation matrix type.

Gets the rotation matrix represented by self.

impl<N: Copy + Zero> Column<Vector2<N>> for Rotation2<N>
[src]

The number of column of this matrix or vector.

Reads the i-th column of self.

Writes the i-th column of self.

impl<N: Copy + Zero> Row<Vector2<N>> for Rotation2<N>
[src]

The number of column of self.

Reads the i-th row of self.

Writes the i-th row of self.

impl<N> Index<(usize, usize)> for Rotation2<N>
[src]

The returned type after indexing

The method for the indexing (Foo[Bar]) operation

impl<N: Absolute<N>> Absolute<Matrix2<N>> for Rotation2<N>
[src]

Computes some absolute value of this object. Typically, this will make all component of a matrix or vector positive. Read more

impl<N: BaseNum> ToHomogeneous<Matrix3<N>> for Rotation2<N>
[src]

Gets the homogeneous coordinates form of this object.

impl<N: Copy> Inverse for Rotation2<N>
[src]

In-place version of inverse.

Returns the inverse of m.

impl<N: Copy> Transpose for Rotation2<N>
[src]

Computes the transpose of a matrix.

In-place version of transposed.

impl<N: ApproxEq<N>> ApproxEq<N> for Rotation2<N>
[src]

Default epsilon for approximation.

Default ULPs for approximation.

Tests approximate equality.

Tests approximate equality using a custom epsilon.

Tests approximate equality using units in the last place (ULPs)

impl<N: Copy + Zero> Diagonal<Vector2<N>> for Rotation2<N>
[src]

Creates a new matrix with the given diagonal.

The diagonal of this matrix.

impl<N: Display + BaseFloat> Display for Rotation2<N>
[src]

Formats the value using the given formatter.

impl<N: BaseFloat> Mul<Isometry2<N>> for Rotation2<N>
[src]

The resulting type after applying the * operator

The method for the * operator

impl<N: BaseFloat> Mul<Similarity2<N>> for Rotation2<N>
[src]

The resulting type after applying the * operator

The method for the * operator