Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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

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

Location:
orxonox/trunk/src/lib/math
Files:
2 edited

Legend:

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

    r3814 r3817  
    4444   \return the difference between the vectors
    4545*/
     46/*
    4647Vector Vector::operator- (const Vector& v) const
    4748{
    4849  return Vector(x - v.x, y - v.y, z - v.z);
    4950}
     51*/
    5052
    5153/**
     
    5456   \return the dot product of the vectors
    5557*/
     58/*
    5659float Vector::operator* (const Vector& v) const
    5760{
    5861  return x * v.x + y * v.y+ z * v.z;
    5962}
     63*/
    6064
    6165/**
  • 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.