Skip to content

Commit

Permalink
libdeng2|Vector: Added missing Vector2<> operator /
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng authored and skyjake committed Apr 22, 2013
1 parent 574c83a commit 02a650c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doomsday/libdeng2/include/de/vector.h
Expand Up @@ -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;
Expand Down

0 comments on commit 02a650c

Please sign in to comment.