Changeset 7876 in orxonox.OLD for branches/gui/src/lib/math
- Timestamp:
- May 26, 2006, 10:50:45 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/math/vector2D.h
r6616 r7876 40 40 41 41 /** @param v: the Vecor to compare with this one @returns true, if the Vecors are the same, false otherwise */ 42 inline bool operator== (const Vector2D& v) const { return (this->x==v.x && this->y==v.y)?true:false; }; 42 inline bool operator== (const Vector2D& v) const { return (this->x==v.x && this->y==v.y); }; 43 /** @param v: the Vector to negative-compare with this one @returns true if the two vectors are different */ 44 inline bool operator!= (const Vector2D& v) const { return (this->x!=v.x && this->y!=v.y); }; 43 45 /** @param index The index of the "array" @returns the x/y coordinate */ 44 46 inline float operator[] (float index) const { return ( index == 0)? this->x : this->y; }
Note: See TracChangeset
for help on using the changeset viewer.