Type Alias Vector2

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

Vector2, 2x f32 components

Aliased Type§

struct Vector2 {
    pub x: f32,
    pub y: f32,
}

Fields§

§x: f32§y: f32

Trait Implementations§

Source§

impl From<Vector2> for Vector2

Source§

fn from(value: Vector2) -> Self

Converts to this type from the input type.
Source§

impl ShaderValue for Vector2

Source§

const UNIFORM_TYPE: ShaderUniformDataType = ShaderUniformDataType::Vec2

Uniform type assiciated with the value
Source§

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

Get the value as a void*