summaryrefslogtreecommitdiff
path: root/include/egg/math/eggVector.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/egg/math/eggVector.h')
-rw-r--r--include/egg/math/eggVector.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/egg/math/eggVector.h b/include/egg/math/eggVector.h
index 2d030d45..f509ad85 100644
--- a/include/egg/math/eggVector.h
+++ b/include/egg/math/eggVector.h
@@ -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);
}