Changeset 7711 in orxonox.OLD for trunk/src/lib/math/vector.h
- Timestamp:
- May 18, 2006, 11:44:21 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/math/vector.h
r7191 r7711 85 85 /** copy constructor* @param v the sVec3D to assign to this vector. @returns the vector v */ 86 86 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]; } 87 88 /** @param v: the other vector \return the dot product of the vectors */ 88 89 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.