Type Definition nalgebra::geometry::Rotation2 [] [src]

type Rotation2<N> = Rotation<N, U2>;

A 2-dimensional rotation matrix.

Methods

impl<N: Real> Rotation2<N>
[src]

[src]

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

[src]

Builds a 2 dimensional rotation matrix from an angle in radian wrapped in a 1-dimensional vector.

Equivalent to Self::new(axisangle[0]).

[src]

The rotation matrix required to align a and b but with its angl.

This is the rotation R such that (R * a).angle(b) == 0 && (R * a).dot(b).is_positive().

[src]

The smallest rotation needed to make a and b collinear and point toward the same direction, raised to the power s.

impl<N: Real> Rotation2<N>
[src]

[src]

The rotation angle.

[src]

The rotation angle needed to make self and other coincide.

[src]

The rotation matrix needed to make self and other coincide.

The result is such that: self.rotation_to(other) * self == other.

[src]

Raise the quaternion to a given floating power, i.e., returns the rotation with the angle of self multiplied by n.

[src]

The rotation angle returned as a 1-dimensional vector.

Trait Implementations

impl<N1, N2> SubsetOf<UnitComplex<N2>> for Rotation2<N1> where
    N1: Real,
    N2: Real + SupersetOf<N1>, 
[src]

[src]

The inclusion map: converts self to the equivalent element of its superset.

[src]

Checks if element is actually part of the subset Self (and can be converted to it).

[src]

Use with care! Same as self.to_superset but without any property checks. Always succeeds.

[src]

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

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

[src]

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

impl<N1, N2> SubsetOf<Rotation2<N2>> for UnitComplex<N1> where
    N1: Real,
    N2: Real + SupersetOf<N1>, 
[src]

[src]

The inclusion map: converts self to the equivalent element of its superset.

[src]

Checks if element is actually part of the subset Self (and can be converted to it).

[src]

Use with care! Same as self.to_superset but without any property checks. Always succeeds.

[src]

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more