Changeset 3960 in orxonox.OLD for orxonox/branches
- Timestamp:
- Apr 25, 2005, 3:33:38 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/particleEngine/src/lib/math/vector.h
r3958 r3960 40 40 Vector operator/ (float f) const; 41 41 inline const Vector operator/= (float f) {this->x /= f; this->y /= f; this->z /= f; return *this;} 42 inline const Vector operator= (const Vector& v) {this->x = v.x; this->y = v.y; this->z = v.z; return *this;} 42 43 float dot (const Vector& v) const; 43 44 inline Vector cross (const Vector& v) const { return Vector(y * v.z - z * v.y, z * v.x - x * v.z, x * v.y - y * v.x ); } … … 85 86 inline Quaternion operator+ (const Quaternion& q) const { return Quaternion(q.v + v, q.w + w); } 86 87 inline Quaternion operator- (const Quaternion& q) const { return Quaternion(q.v - v, q.w - w); } 88 inline Quaternion operator= (const Quaternion& q) {this->v = q.v; this->w = q.w; return *this;} 87 89 Quaternion conjugate () const { Quaternion r(*this); 88 90 r.v = Vector() - r.v;
Note: See TracChangeset
for help on using the changeset viewer.