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]

[src]

Full constructor.

[src]

Identity constructor.

[src]

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.

[src]

Constructor for a rotation around axis by angle radians.

axis need not be normalized.

[src]

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

Trait Implementations

impl Clone for Quat
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Quat
[src]

impl Debug for Quat
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Quat
[src]

[src]

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

[src]

This method tests for !=.

impl Display for Quat
[src]

[src]

Formats the value using the given formatter. Read more

impl Mul<Quat> for Quat
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl MulAssign<Quat> for Quat
[src]

[src]

Performs the *= operation.

impl Default for Quat
[src]

[src]

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

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

impl ApproxEq for Quat
[src]

Used for specifying relative comparisons.

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

The inverse of ApproxEq::relative_eq.

[src]

The inverse of ApproxEq::ulps_eq.