Changeset 3817 in orxonox.OLD for orxonox/trunk/src/lib
- Timestamp:
- Apr 13, 2005, 11:58:52 PM (20 years ago)
- Location:
- orxonox/trunk/src/lib/math
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/math/vector.cc
r3814 r3817 44 44 \return the difference between the vectors 45 45 */ 46 /* 46 47 Vector Vector::operator- (const Vector& v) const 47 48 { 48 49 return Vector(x - v.x, y - v.y, z - v.z); 49 50 } 51 */ 50 52 51 53 /** … … 54 56 \return the dot product of the vectors 55 57 */ 58 /* 56 59 float Vector::operator* (const Vector& v) const 57 60 { 58 61 return x * v.x + y * v.y+ z * v.z; 59 62 } 63 */ 60 64 61 65 /** -
orxonox/trunk/src/lib/math/vector.h
r3815 r3817 31 31 inline Vector operator+ (const Vector& v) const { return Vector(x + v.x, y + v.y, z + v.z); } 32 32 Vector operator- (const Vector& v) const { return Vector(x - v.x, y - v.y, z - v.z); } 33 float operator* (const Vector& v) const { return Vector(x * v.x, y * v.y, z * v.z); }33 float operator* (const Vector& v) const { return x * v.x + y * v.y + z * v.z; } 34 34 Vector operator* (float f) const; 35 35 Vector operator/ (float f) const;
Note: See TracChangeset
for help on using the changeset viewer.