branch | pyrit |
changeset 28 | ffe83ca074f3 |
parent 25 | b8232edee786 |
child 34 | 28f6e8b9d5d1 |
--- a/include/vector.h Fri Dec 07 16:39:42 2007 +0100 +++ b/include/vector.h Sat Dec 08 12:37:45 2007 +0100 @@ -69,6 +69,15 @@ return *this; }; + // cut + Vector3 operator/=(const Float &f) + { + x /= f; + y /= f; + z /= f; + return *this; + }; + // sum friend Vector3 operator+(const Vector3 &a, const Vector3 &b) {