Changeset 10655 in orxonox.OLD for branches/vs-enhencements/src/lib/math
- Timestamp:
- May 13, 2007, 1:27:37 PM (18 years ago)
- Location:
- branches/vs-enhencements/src/lib/math
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/vs-enhencements/src/lib/math/quaternion.h
r10640 r10655 115 115 116 116 117 inlinevoid slerpTo(const Quaternion& toQuat, float t);117 void slerpTo(const Quaternion& toQuat, float t); 118 118 static Quaternion quatSlerp(const Quaternion& from, const Quaternion& to, float t); 119 119 -
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.