Changeset 7914 in orxonox.OLD for branches/gui/src/lib/math/vector2D.h
- Timestamp:
- May 28, 2006, 3:13:43 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/math/vector2D.h
r7876 r7914 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 /** @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; }; 81 83 /** scales the this vector with v* @param v the vector to scale this with */ 82 84 void scale(const Vector2D& v) { x *= v.x; y *= v.y; }; … … 87 89 Vector2D getNormalized() const; 88 90 Vector2D abs(); 91 92 /** @param v the Vector to slerp to @param val 0 = stay 1 = at v */ 93 void slerp(const Vector2D& v, float val) { *this += (*this - v) * val; } 89 94 90 95 void debug() const;
Note: See TracChangeset
for help on using the changeset viewer.