diff --git a/doomsday/libdeng2/include/de/vector.h b/doomsday/libdeng2/include/de/vector.h index cef55b9873..d42223c544 100644 --- a/doomsday/libdeng2/include/de/vector.h +++ b/doomsday/libdeng2/include/de/vector.h @@ -92,6 +92,9 @@ class Vector2 Vector2 operator * (Vector2 const &other) const { return Vector2(x * other.x, y * other.y); } + Vector2 operator / (ddouble scalar) const { + return *this * (1.0 / scalar); + } Vector2 &operator += (Vector2 const &other) { x += other.x; y += other.y;