Struct euler::Quat[][src]

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

Single-precision quaternion.

Fields

Methods

impl Quat
[src]

Full constructor.

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.

Constructor for a rotation around axis by angle radians.

axis need not be normalized.

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

Trait Implementations

impl Clone for Quat
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Quat
[src]

impl Debug for Quat
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Quat
[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 Quat
[src]

Formats the value using the given formatter. Read more

impl Mul<Quat> for Quat
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl MulAssign<Quat> for Quat
[src]

Performs the *= operation.

impl Default for Quat
[src]

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

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

impl ApproxEq for Quat
[src]

Used for specifying relative comparisons.

The default tolerance to use when testing values that are close together. Read more

The default relative tolerance for testing values that are far-apart. Read more

The default ULPs to tolerate when testing values that are far-apart. Read more

A test for equality that uses a relative comparison if the values are far apart.

A test for equality that uses units in the last place (ULP) if the values are far apart.

The inverse of ApproxEq::relative_eq.

The inverse of ApproxEq::ulps_eq.

Auto Trait Implementations

impl Send for Quat

impl Sync for Quat