diff options
Diffstat (limited to 'engine/src/vector.rs')
-rw-r--r-- | engine/src/vector.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engine/src/vector.rs b/engine/src/vector.rs index 92192bf..48550fa 100644 --- a/engine/src/vector.rs +++ b/engine/src/vector.rs @@ -4,3 +4,8 @@ pub struct Vec2<Value> pub x: Value, pub y: Value, } + +impl Vec2<u32> +{ + pub const ZERO: Self = Self { x: 0, y: 0 }; +} |