Struct nalgebra::UnitQuaternion [] [src]

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

A unit quaternion that can represent a 3D rotation.

Methods

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

Creates a new unit quaternion from the axis-angle representation of a rotation.

Creates a new unit quaternion from a quaternion.

The input quaternion will be normalized.

Creates a new unit quaternion from Euler angles.

The primitive rotations are applied in order: 1 roll − 2 pitch − 3 yaw.

Builds a rotation matrix from this quaternion.

impl<N> UnitQuaternion<N>
[src]

Creates a new unit quaternion from a quaternion.

This is unsafe because the input quaternion will not be normalized.

The Quaternion representation of this unit quaternion.

Trait Implementations

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

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

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<N: Hash> Hash for UnitQuaternion<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: Debug> Debug for UnitQuaternion<N>
[src]

Formats the value using the given formatter.

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

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

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

impl<N: Copy + Neg<Output=N>> Inverse for UnitQuaternion<N>
[src]

Returns the inverse of m.

In-place version of inverse.

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

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

impl<N: ApproxEq<N>> ApproxEq<N> for UnitQuaternion<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: BaseFloat + ApproxEq<N>> Div<UnitQuaternion<N>> for UnitQuaternion<N>
[src]

The resulting type after applying the / operator

The method for the / operator

impl<N: BaseFloat + ApproxEq<N>> DivAssign<UnitQuaternion<N>> for UnitQuaternion<N>
[src]

The method for the /= operator

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

The resulting type after applying the * operator

The method for the * operator

impl<N: BaseNum> MulAssign<UnitQuaternion<N>> for UnitQuaternion<N>
[src]

The method for the *= operator

impl<N: BaseNum> Mul<Vector3<N>> for UnitQuaternion<N>
[src]

The resulting type after applying the * operator

The method for the * operator

impl<N: BaseNum> Mul<Point3<N>> for UnitQuaternion<N>
[src]

The resulting type after applying the * operator

The method for the * operator

impl<N: BaseFloat> Rotation<Vector3<N>> for UnitQuaternion<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> RotationMatrix<N, Vector3<N>, Vector3<N>> for UnitQuaternion<N>
[src]

The output rotation matrix type.

Gets the rotation matrix represented by self.

impl<N: BaseNum + Neg<Output=N>> Rotate<Vector3<N>> for UnitQuaternion<N>
[src]

Applies a rotation to v.

Applies an inverse rotation to v.

impl<N: BaseNum + Neg<Output=N>> Rotate<Point3<N>> for UnitQuaternion<N>
[src]

Applies a rotation to v.

Applies an inverse rotation to v.

impl<N: BaseFloat + ApproxEq<N>> RotationTo for UnitQuaternion<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: BaseNum + Neg<Output=N>> Transform<Vector3<N>> for UnitQuaternion<N>
[src]

Applies a transformation to v.

Applies an inverse transformation to v.

impl<N: BaseNum + Neg<Output=N>> Transform<Point3<N>> for UnitQuaternion<N>
[src]

Applies a transformation to v.

Applies an inverse transformation to v.

impl<N: Display> Display for UnitQuaternion<N>
[src]

Formats the value using the given formatter.

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

The dimension of the object.