Changeset 8148 in orxonox.OLD for trunk/src/lib/math
- Timestamp:
- Jun 5, 2006, 12:46:02 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/math/vector2D.h
r8035 r8148 76 76 inline const Vector2D& operator= (const Vector2D& v) { this->x = v.x; this->y = v.y; return *this; }; 77 77 /** 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; } 79 79 /** @param v: the other vector \return the dot product of the vectors */ 80 80 float dot (const Vector2D& v) const { return x*v.x+y*v.y; }; 81 81 /** @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; }; 83 83 /** scales the this vector with v* @param v the vector to scale this with */ 84 84 void scale(const Vector2D& v) { x *= v.x; y *= v.y; };
Note: See TracChangeset
for help on using the changeset viewer.