Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10660 in orxonox.OLD for branches/vs-enhencements/src/lib/math


Ignore:
Timestamp:
May 24, 2007, 12:05:40 AM (18 years ago)
Author:
nicolasc
Message:

night bunp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/vs-enhencements/src/lib/math/vector.h

    r10655 r10660  
    5151
    5252  /** @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; }
    5454  /** @param v The vector to add @returns the addition between two vectors (this + v) */
    5555  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.