Changeset 10660 in orxonox.OLD for branches/vs-enhencements/src/lib
- Timestamp:
- May 24, 2007, 12:05:40 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/vs-enhencements/src/lib/math/vector.h
r10655 r10660 51 51 52 52 /** @param index The index of the "array" @returns the x/y/z coordinate */ 53 inline float operator[] (float index) const {if( index == 0) return this->x; if( index == 1) return this->y; if( index == 2) return this->z; }53 inline float operator[] (float index) const {if( index == 0) return this->x; if( index == 1) return this->y; if( index == 2) return this->z; else return this->x; } 54 54 /** @param v The vector to add @returns the addition between two vectors (this + v) */ 55 55 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.