Type Alias rust_raylib::ffi::Quaternion

source ·
pub type Quaternion = Vector4;
Expand description

Quaternion, 4 components (Vector4 alias)

Aliased Type§

struct Quaternion {
    pub x: f32,
    pub y: f32,
    pub z: f32,
    pub w: f32,
}

Fields§

§x: f32

Vector x component

§y: f32

Vector y component

§z: f32

Vector z component

§w: f32

Vector w component

Trait Implementations§

source§

impl Clone for Vector4

source§

fn clone(&self) -> Vector4

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Vector4

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<Quaternion<f32>> for Vector4

source§

fn from(val: Quaternion) -> Self

Converts to this type from the input type.
source§

impl From<Vector4<f32>> for Vector4

source§

fn from(val: Vector4) -> Self

Converts to this type from the input type.