Skip to content

Commit

Permalink
libdeng2|Vector: Added the missing Vector4<>::operator /
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed May 24, 2013
1 parent 8816915 commit 58f6b2a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doomsday/libdeng2/include/de/core/vector.h
Expand Up @@ -463,6 +463,9 @@ class Vector4 : public Vector3<Type>
w *= scalar;
return *this;
}
Vector4 operator / (ddouble scalar) const {
return *this * (1.0 / scalar);
}
inline Vector4 &operator /= (ddouble scalar) {
return (*this) *= 1.0 / scalar;
}
Expand Down

0 comments on commit 58f6b2a

Please sign in to comment.