Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7711 in orxonox.OLD for trunk/src/lib/math/vector.h


Ignore:
Timestamp:
May 18, 2006, 11:44:21 PM (18 years ago)
Author:
patrick
Message:

trunk: merged the cd branche back to trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/math/vector.h

    r7191 r7711  
    8585  /** copy constructor* @param v the sVec3D to assign to this vector. @returns the vector v */
    8686  inline const Vector& operator= (const sVec3D& v) { this->x = v[0]; this->y = v[1]; this->z = v[2]; }
     87  inline const Vector& operator= (const float* v) { this->x = v[0]; this->y = v[1]; this->z = v[2]; }
    8788  /** @param v: the other vector \return the dot product of the vectors */
    8889  float dot (const Vector& v) const { return x*v.x+y*v.y+z*v.z; };
Note: See TracChangeset for help on using the changeset viewer.