Struct ami::Rotation[][src]

#[repr(C)]
pub struct Rotation { pub x: f32, pub y: f32, pub z: f32, pub s: f32, }

Single-precision quaternion.

Fields

Methods

impl Rotation
[src]

Identity constructor.

Constructor for a rotation defined by a set of Euler angles

The rotation order is Z, then X, then Y. From the point of the object, this is equivalent to a yaw in angles.y, a pitch in angles.x, and a roll in angles.z.

Create a new Rotation from axis and angle.

Return the application of the rotation represented by this quaternion to the vector argument.

Add another Rotation after the current Rotation.

Trait Implementations

impl Clone for Rotation
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Rotation
[src]

impl Debug for Rotation
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Rotation
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Display for Rotation
[src]

Formats the value using the given formatter. Read more

impl Mul<f32> for Rotation
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Mul<Rotation> for Rotation
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl MulAssign<Rotation> for Rotation
[src]

Performs the *= operation.

impl Default for Rotation
[src]

Returns the "default value" for a type. Read more

impl AsRef<[f32; 4]> for Rotation
[src]

Performs the conversion.

impl From<[f32; 4]> for Rotation
[src]

Performs the conversion.

impl Into<[f32; 4]> for Rotation
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Rotation

impl Sync for Rotation