Struct euler::Quat [] [src]

#[repr(C)]
pub struct Quat { pub vector: Vec3, pub scalar: f32, }

Quaternion in the order [x, y, z, w], where w is the scalar.

Fields

Vector part.

Scalar part.

Methods

impl Quat
[src]

[src]

Returns the identity quaternion.

[src]

Returns a quaternion representing a rotation by r radians about axis.

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 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 From<Quaternion<f32>> for Quat
[src]

[src]

Performs the conversion.

impl Into<Quaternion<f32>> for Quat
[src]

[src]

Performs the conversion.