Type Alias rust_raylib::math::Vector4

source ·
pub type Vector4 = Vector4<f32>;
Expand description

Vector4, 4x f32 components

Aliased Type§

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

Fields§

§x: f32§y: f32§z: f32§w: f32

Trait Implementations§

source§

impl From<Vector4> for Vector4

source§

fn from(value: Vector4) -> Self

Converts to this type from the input type.
source§

impl ShaderValue for Vector4

source§

const UNIFORM_TYPE: ShaderUniformDataType = ShaderUniformDataType::Vec4

Uniform type assiciated with the value
source§

unsafe fn raw_value(&self) -> *const c_void

Get the value as a void*