Struct euler::DQuat[][src]

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

Double-precision quaternion.

Fields

Methods

impl DQuat
[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 DQuat
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for DQuat
[src]

impl Debug for DQuat
[src]

Formats the value using the given formatter. Read more

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

Formats the value using the given formatter. Read more

impl Mul<DQuat> for DQuat
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl MulAssign<DQuat> for DQuat
[src]

Performs the *= operation.

impl Default for DQuat
[src]

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

impl AsRef<[f64; 4]> for DQuat
[src]

Performs the conversion.

impl From<[f64; 4]> for DQuat
[src]

Performs the conversion.

impl Into<[f64; 4]> for DQuat
[src]

Performs the conversion.

impl ApproxEq for DQuat
[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 DQuat

impl Sync for DQuat