Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10655 in orxonox.OLD for branches/vs-enhencements/src/lib


Ignore:
Timestamp:
May 13, 2007, 1:27:37 PM (18 years ago)
Author:
rennerc
Message:

ActionboxEnemy looks at Player :D

Location:
branches/vs-enhencements/src/lib/math
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/vs-enhencements/src/lib/math/quaternion.h

    r10640 r10655  
    115115
    116116
    117     inline void slerpTo(const Quaternion& toQuat, float t);
     117    void slerpTo(const Quaternion& toQuat, float t);
    118118    static Quaternion quatSlerp(const Quaternion& from, const Quaternion& to, float t);
    119119
  • branches/vs-enhencements/src/lib/math/vector.h

    r10376 r10655  
    6464  /** @param v The vector to substract  @returns the substraction between two vectors (this - v) */
    6565  inline Vector operator- (const sVec3D& v) const { return Vector(x - v[0], y - v[1], z - v[2]); }
     66  /** @returns the substraction between (0, 0, 0) and this (null-this) */
     67  inline Vector operator- () const { return Vector(-x, -y, -z); }
    6668  /** @param v The vector to substract  @returns the substraction between two vectors (this -= v) */
    6769  inline const Vector& operator-= (const Vector& v) { this->x -= v.x; this->y -= v.y; this->z -= v.z; return *this; };
Note: See TracChangeset for help on using the changeset viewer.