Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7584 in orxonox.OLD for branches/cd/src/lib/math


Ignore:
Timestamp:
May 11, 2006, 12:21:46 AM (19 years ago)
Author:
patrick
Message:

cd: changing to new coordinate format

File:
1 edited

Legend:

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

    r7191 r7584  
    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.