1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#[derive(Debug)] pub struct Vec2<Value> { pub x: Value, pub y: Value, } impl Vec2<u32> { pub const ZERO: Self = Self { x: 0, y: 0 }; } #[derive(Debug, Default, Clone)] #[repr(C)] pub struct Vec3<Value> { pub x: Value, pub y: Value, pub z: Value, }