Struct nalgebra::Isometry2 [] [src]

pub struct Isometry2<N> {
    pub rotation: Rotation2<N>,
    pub translation: Vector2<N>,
}

Two dimensional direct isometry.

This is the composition of a rotation followed by a translation. Vectors Vector2 are not affected by the translational component of this transformation while points Point2 are. Isometries conserve angles and distances, hence do not allow shearing nor scaling.

Fields

The rotation applicable by this isometry.

The translation applicable by this isometry.

Methods

impl<N: BaseFloat> Isometry2<N>
[src]

Creates a new isometry from an axis-angle rotation, and a vector.

Creates a new isometry from a rotation matrix and a vector.

Trait Implementations

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

impl<N: PartialEq> PartialEq for Isometry2<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 Isometry2<N>
[src]

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter.

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

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

The output rotation matrix type.

Gets the rotation matrix represented by self.

impl<N: Cast<f64> + BaseFloat> Rotation<Vector1<N>> for Isometry2<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> Dimension for Isometry2<N>
[src]

The dimension of the object.

impl<N: BaseFloat> One for Isometry2<N>
[src]

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

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

This is the same as: Read more

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

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

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

Default epsilon for approximation.

Default ULPs for approximation.

Tests approximate equality using a custom epsilon.

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

Tests approximate equality.

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

Gets the homogeneous coordinates form of this object.

impl<N: BaseNum + Neg<Output=N>> Inverse for Isometry2<N>
[src]

In-place version of inverse.

Returns the inverse of m.

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

Applies a transformation to v.

Applies an inverse transformation to v.

impl<N: BaseFloat> Transformation<Isometry2<N>> for Isometry2<N>
[src]

Gets the transformation of self.

Gets the inverse transformation of self.

Appends a transformation to this object.

Appends the transformation amount to a copy of t.

Prepends a transformation to this object.

Prepends the transformation amount to a copy of t.

Sets the transformation of self.

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

Applies a rotation to v.

Applies an inverse rotation to v.

impl<N: BaseFloat> Translation<Vector2<N>> for Isometry2<N>
[src]

Gets the translation associated with this object.

Gets the inverse translation associated with this object.

Appends a translation to this object.

Appends the translation amount to a copy of t.

Prepends a translation to this object.

Prepends the translation amount to a copy of t.

Sets the translation.

impl<N: Copy + Add<N, Output=N> + Sub<N, Output=N>> Translate<Point2<N>> for Isometry2<N>
[src]

Apply a translation to an object.

Apply an inverse translation to an object.

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

The resulting type after applying the * operator

The method for the * operator

impl<N: BaseFloat> MulAssign<Isometry2<N>> for Isometry2<N>
[src]

The method for the *= operator

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

The resulting type after applying the * operator

The method for the * operator

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

The method for the *= operator

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

The resulting type after applying the * operator

The method for the * operator

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

The resulting type after applying the * operator

The method for the * operator

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

Formats the value using the given formatter.

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

The resulting type after applying the * operator

The method for the * operator