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

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

A 2-dimensional rotation matrix.

Methods

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

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

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

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

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

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

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]

The rotation angle.

The rotation angle needed to make self and other coincide.

The rotation matrix needed to make self and other coincide.

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

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

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]

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

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

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

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

impl<N: Real> Distribution<Rotation2<N>> for Standard where
    OpenClosed01: Distribution<N>, 
[src]

Generate a uniformly distributed random rotation.

Important traits for DistIter<'a, D, R, T>

Create an iterator that generates random values of T, using rng as the source of randomness. Read more

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

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

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

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

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