Type Alias rust_raylib::math::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*