Changeset 5688 in orxonox.OLD for trunk/src/lib/math
- Timestamp:
- Nov 21, 2005, 11:27:39 PM (19 years ago)
- Location:
- trunk/src/lib/math
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/math/vector.cc
r5672 r5688 513 513 * @param c: third point 514 514 */ 515 Plane::Plane ( Vector a, Vector b, Vectorc)515 Plane::Plane (const Vector& a, const Vector& b, const Vector& c) 516 516 { 517 517 n = (a-b).cross(c-b); … … 524 524 * @param p: anchor point 525 525 */ 526 Plane::Plane ( Vector norm, Vectorp)526 Plane::Plane (const Vector& norm, const Vector& p) 527 527 { 528 528 n = norm; … … 536 536 * @param p: anchor point 537 537 */ 538 Plane::Plane ( Vector norm, sVec3Dg)538 Plane::Plane (const Vector& norm, const sVec3D& g) 539 539 { 540 540 Vector p(g[0], g[1], g[2]); -
trunk/src/lib/math/vector.h
r5672 r5688 276 276 float k; //!< Offset constant 277 277 278 Plane ( Vector a, Vector b, Vectorc);279 Plane ( Vector norm, Vectorp);280 Plane ( Vector norm, sVec3Dp);281 Plane ( Vectorn, float k) : n(n), k(k) {} //!< assignment constructor278 Plane (const Vector& a, const Vector& b, const Vector& c); 279 Plane (const Vector& norm, const Vector& p); 280 Plane (const Vector& norm, const sVec3D& p); 281 Plane (const Vector& n, float k) : n(n), k(k) {} //!< assignment constructor 282 282 Plane () : n(Vector(1,1,1)), k(0) {} 283 283 ~Plane () {}
Note: See TracChangeset
for help on using the changeset viewer.