Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8826 in orxonox.OLD for branches


Ignore:
Timestamp:
Jun 27, 2006, 2:43:30 PM (18 years ago)
Author:
hdavid
Message:

branches/mountain_lake: vector != bug removed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/mountain_lake/src/lib/math/vector.h

    r8490 r8826  
    4747  inline bool operator== (const Vector& v) const { return (this->x==v.x&&this->y==v.y&&this->z==v.z)?true:false; };
    4848  /** @param v: the Vecor to compare with this one @returns true, if the Vecors are different, false otherwise */
    49   inline bool operator!= (const Vector& v) const { return (this->x!=v.x&&this->y!=v.y&&this->z!=v.z)?true:false; };
     49  inline bool operator!= (const Vector& v) const { return (this->x!=v.x||this->y!=v.y||this->z!=v.z)?true:false; };
    5050  /** @param index The index of the "array" @returns the x/y/z coordinate */
    5151  inline float operator[] (float index) const {if( index == 0) return this->x; if( index == 1) return this->y; if( index == 2) return this->z; }
Note: See TracChangeset for help on using the changeset viewer.