Changeset 4562 in orxonox.OLD for orxonox/trunk/src/lib/math
- Timestamp:
- Jun 9, 2005, 12:37:13 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/math/vector.h
r4545 r4562 28 28 29 29 /** \param index The index of the "array" \returns the x/y/z coordinate */ 30 inline float operator[] (float index) const {if( index == 0) return this->x; if( index == 1) return this->y; if( index == 2) return this->z; }30 inline float operator[] (float index) const {if( index == 0) return this->x; if( index == 1) return this->y; if( index == 2) return this->z; } 31 31 /** \param v The vector to add \returns the addition between two vectors (this + v) */ 32 32 inline Vector operator+ (const Vector& v) const { return Vector(x + v.x, y + v.y, z + v.z); };
Note: See TracChangeset
for help on using the changeset viewer.