Changeset 3818 in orxonox.OLD for orxonox/trunk/src/lib/math/vector.cc
- Timestamp:
- Apr 14, 2005, 12:12:01 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/math/vector.cc
r3817 r3818 32 32 \return the sum of both vectors 33 33 */ 34 /* 35 Vector Vector::operator+ (const Vector& v) const 36 { 37 return Vector(x + v.x, y + v.y, z + v.z); 38 } 39 */ 34 35 //Vector Vector::operator+ (const Vector& v) const 36 40 37 41 38 /** … … 44 41 \return the difference between the vectors 45 42 */ 46 /* 47 Vector Vector::operator- (const Vector& v) const 48 { 49 return Vector(x - v.x, y - v.y, z - v.z); 50 } 51 */ 43 //Vector Vector::operator- (const Vector& v) const 44 52 45 53 46 /** … … 56 49 \return the dot product of the vectors 57 50 */ 58 /* 59 float Vector::operator* (const Vector& v) const 60 { 61 return x * v.x + y * v.y+ z * v.z; 62 } 63 */ 51 //float Vector::operator* (const Vector& v) const 52 64 53 65 54 /** … … 68 57 \return the vector multipied by f 69 58 */ 70 Vector Vector::operator* (float f) const 71 { 72 return Vector(x * f, y * f, z * f); 73 } 59 //Vector Vector::operator* (float f) const 60 74 61 75 62 /**
Note: See TracChangeset
for help on using the changeset viewer.