Changeset 8145 in orxonox.OLD for trunk/src/lib/math
- Timestamp:
- Jun 5, 2006, 11:49:26 AM (18 years ago)
- Location:
- trunk/src/lib/math
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/math/rect2D.cc
r7919 r8145 36 36 Rect2D::Rect2D(float x, float y, float width, float height) 37 37 { 38 this->setLeft(x), this->setTop(y); 38 this->setLeft(x), 39 this->setTop(y); 39 40 this->setSize(width, height); 40 41 } -
trunk/src/lib/math/vector.h
r8035 r8145 79 79 inline const Vector& operator= (const Vector& v) { this->x = v.x; this->y = v.y; this->z = v.z; return *this; }; 80 80 /** copy constructor* @param v the sVec3D to assign to this vector. @returns the vector v */ 81 inline const Vector& operator= (const sVec3D& v) { this->x = v[0]; this->y = v[1]; this->z = v[2]; }82 inline const Vector& operator= (const float* v) { this->x = v[0]; this->y = v[1]; this->z = v[2]; }81 inline const Vector& operator= (const sVec3D& v) { this->x = v[0]; this->y = v[1]; this->z = v[2]; return *this; } 82 inline const Vector& operator= (const float* v) { this->x = v[0]; this->y = v[1]; this->z = v[2]; return *this; } 83 83 /** @param v: the other vector \return the dot product of the vectors */ 84 84 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.