Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jun 5, 2006, 12:46:02 PM (19 years ago)
Author:
bensch
Message:

trunk: output of EventListener Nicer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/math/vector2D.h

    r8035 r8148  
    7676  inline const Vector2D& operator= (const Vector2D& v) { this->x = v.x; this->y = v.y; return *this; };
    7777  /** copy constructor* @param v the sVec3D to assign to this vector. @returns the vector v */
    78   inline const Vector2D& operator= (const sVec2D& v) { this->x = v[0]; this->y = v[1]; }
     78  inline const Vector2D& operator= (const sVec2D& v) { this->x = v[0]; this->y = v[1]; return *this; }
    7979  /** @param v: the other vector \return the dot product of the vectors */
    8080  float dot (const Vector2D& v) const { return x*v.x+y*v.y; };
    8181  /** @param v multipy each entry with each other @returns this reference */
    82   const Vector2D& internalMultipy(const Vector2D& v) { this->x *= v.x; this->y *= y; };
     82  const Vector2D& internalMultipy(const Vector2D& v) { this->x *= v.x; this->y *= y; return *this; };
    8383  /** scales the this vector with v* @param v the vector to scale this with */
    8484  void scale(const Vector2D& v) {   x *= v.x;  y *= v.y; };
Note: See TracChangeset for help on using the changeset viewer.