Changeset 10655 in orxonox.OLD for branches/vs-enhencements/src/lib/math/vector.h
- Timestamp:
- May 13, 2007, 1:27:37 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/vs-enhencements/src/lib/math/vector.h
r10376 r10655 64 64 /** @param v The vector to substract @returns the substraction between two vectors (this - v) */ 65 65 inline Vector operator- (const sVec3D& v) const { return Vector(x - v[0], y - v[1], z - v[2]); } 66 /** @returns the substraction between (0, 0, 0) and this (null-this) */ 67 inline Vector operator- () const { return Vector(-x, -y, -z); } 66 68 /** @param v The vector to substract @returns the substraction between two vectors (this -= v) */ 67 69 inline const Vector& operator-= (const Vector& v) { this->x -= v.x; this->y -= v.y; this->z -= v.z; return *this; };
Note: See TracChangeset
for help on using the changeset viewer.