Type Alias Vector3

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

Vector3, 3x f32 components

Aliased Type§

struct Vector3 {
    pub x: f32,
    pub y: f32,
    pub z: f32,
}

Fields§

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

Trait Implementations§

Source§

impl From<Vector3> for Vector3

Source§

fn from(value: Vector3) -> Self

Converts to this type from the input type.
Source§

impl ShaderValue for Vector3

Source§

const UNIFORM_TYPE: ShaderUniformDataType = ShaderUniformDataType::Vec3

Uniform type assiciated with the value
Source§

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

Get the value as a void*