Vector2

Type Alias Vector2 

Source
pub type Vector2 = Vec2;
Expand description

A 2D vector type for use in any dimension context.

Aliased Type§

#[repr(C)]
pub struct Vector2 { pub x: f32, pub y: f32, }

Fields§

§x: f32§y: f32

Trait Implementations§

Source§

impl AsBytes for Vector2

Source§

fn as_bytes(&self) -> &[u8]

Converts self to a slice of bytes.