diff options
Diffstat (limited to 'source/math.h')
-rwxr-xr-x | source/math.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/math.h b/source/math.h index 3ecf6fb..d682ae3 100755 --- a/source/math.h +++ b/source/math.h @@ -90,6 +90,10 @@ union Vec3 { r32 z; }; r32 data[3]; + + Vec2 v2() { + return Vec2{x, y}; + } }; typedef Vec3 RGB; |