Type Definition nalgebra::geometry::Rotation2

source ·
pub type Rotation2<N> = Rotation<N, U2>;
Expand description

A 2-dimensional rotation matrix.

Implementations§

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.

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§

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