Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3817 in orxonox.OLD for orxonox/trunk/src/lib/math/vector.h


Ignore:
Timestamp:
Apr 13, 2005, 11:58:52 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: inlined more functions and fixed a compile error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/math/vector.h

    r3815 r3817  
    3131  inline Vector operator+ (const Vector& v) const { return Vector(x + v.x, y + v.y, z + v.z); }
    3232  Vector operator- (const Vector& v) const { return Vector(x - v.x, y - v.y, z - v.z); }
    33   float operator* (const Vector& v) const { return Vector(x * v.x, y * v.y, z * v.z); }
     33  float operator* (const Vector& v) const { return x * v.x + y * v.y + z * v.z; }
    3434  Vector operator* (float f) const;
    3535  Vector operator/ (float f) const;
Note: See TracChangeset for help on using the changeset viewer.