Type Alias Quaternion

Source
pub type Quaternion = Quaternion<f32>;
Expand description

Quaternion, 4x f32 components

Aliased Type§

struct Quaternion {
    pub v: Vector3<f32>,
    pub s: f32,
}

Fields§

§v: Vector3<f32>

Vector part of a quaternion.

§s: f32

Scalar part of a quaternion.

Trait Implementations§

Source§

impl From<Vector4> for Quaternion

Source§

fn from(value: Vector4) -> Self

Converts to this type from the input type.