summaryrefslogtreecommitdiff
path: root/engine/src/vector.rs
blob: c25a258372d8c1ba42862d7dd097018eaa17e80c (plain)
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,
}