mirror of
https://github.com/zeldaret/ss
synced 2026-07-09 22:21:32 -04:00
Introduce mVec2_c
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user