Changeset 7584 in orxonox.OLD for branches/cd/src/lib/math
- Timestamp:
- May 11, 2006, 12:21:46 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cd/src/lib/math/vector.h
r7191 r7584 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.