Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7914 in orxonox.OLD for branches/gui/src/lib/math/vector2D.h


Ignore:
Timestamp:
May 28, 2006, 3:13:43 AM (18 years ago)
Author:
bensch
Message:

orxonox/gui: simple almost finished implementation of a Rectangle Class, that should greatly improve work-flow in the GUI (most widgets are Rectangled :)

File:
1 edited

Legend:

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

    r7876 r7914  
    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; };
     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; };
    8183  /** scales the this vector with v* @param v the vector to scale this with */
    8284  void scale(const Vector2D& v) {   x *= v.x;  y *= v.y; };
     
    8789  Vector2D getNormalized() const;
    8890  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; }
    8994
    9095  void debug() const;
Note: See TracChangeset for help on using the changeset viewer.