Struct mint::Quaternion [] [src]

#[repr(C)]
pub struct Quaternion<T> { pub s: T, pub v: Vector3<T>, }

Standard quaternion represented by the scalar and vector parts. Useful for representing rotation in 3D space.

Fields

Scalar part of a quaternion.

Vector part of a quaternion.

Trait Implementations

impl<T: Clone> From<[T; 4]> for Quaternion<T>
[src]

Performs the conversion.

impl<T> Into<[T; 4]> for Quaternion<T>
[src]

Performs the conversion.