Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3960 in orxonox.OLD


Ignore:
Timestamp:
Apr 25, 2005, 3:33:38 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/particleEngine: copy-constuctor-prevention due to copying values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/particleEngine/src/lib/math/vector.h

    r3958 r3960  
    4040  Vector operator/ (float f) const;
    4141  inline const Vector operator/= (float f) {this->x /= f; this->y /= f; this->z /= f; return *this;}
     42  inline const Vector operator= (const Vector& v) {this->x = v.x; this->y = v.y; this->z = v.z; return *this;}
    4243  float dot (const Vector& v) const;
    4344  inline Vector cross (const Vector& v) const { return Vector(y * v.z - z * v.y, z * v.x - x * v.z, x * v.y - y * v.x ); }
     
    8586  inline Quaternion operator+ (const Quaternion& q) const { return Quaternion(q.v + v, q.w + w); }
    8687  inline Quaternion operator- (const Quaternion& q) const { return Quaternion(q.v - v, q.w - w); }
     88  inline Quaternion operator= (const Quaternion& q) {this->v = q.v; this->w = q.w; return *this;}
    8789  Quaternion conjugate () const {  Quaternion r(*this);
    8890  r.v = Vector() - r.v;
Note: See TracChangeset for help on using the changeset viewer.