Introduce mVec2_c

This commit is contained in:
robojumper
2025-04-05 23:36:55 +02:00
parent a5b91ef55d
commit cd5fd322f8
8 changed files with 25 additions and 33 deletions
+5
View File
@@ -136,6 +136,11 @@ public:
static const Vector2f ex;
static const Vector2f ey;
void set(f32 fx, f32 fy) {
x = fx;
y = fy;
}
Vector2f operator-(const Vector2f &v) {
return Vector2f(x - v.x, y - v.y);
}