Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8144 in orxonox.OLD for branches/gui/src/lib/math


Ignore:
Timestamp:
Jun 4, 2006, 7:55:55 PM (19 years ago)
Author:
bensch
Message:

gui: better debugging system

File:
1 edited

Legend:

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

    r8035 r8144  
    7979  inline const Vector& operator= (const Vector& v) { this->x = v.x; this->y = v.y; this->z = v.z; return *this; };
    8080  /** copy constructor* @param v the sVec3D to assign to this vector. @returns the vector v */
    81   inline const Vector& operator= (const sVec3D& v) { this->x = v[0]; this->y = v[1]; this->z = v[2]; }
    82   inline const Vector& operator= (const float* v) { this->x = v[0]; this->y = v[1]; this->z = v[2]; }
     81  inline const Vector& operator= (const sVec3D& v) { this->x = v[0]; this->y = v[1]; this->z = v[2]; return *this; }
     82  inline const Vector& operator= (const float* v) { this->x = v[0]; this->y = v[1]; this->z = v[2]; return *this; }
    8383  /** @param v: the other vector \return the dot product of the vectors */
    8484  float dot (const Vector& v) const { return x*v.x+y*v.y+z*v.z; };
Note: See TracChangeset for help on using the changeset viewer.