Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5688 in orxonox.OLD for trunk/src/lib/math


Ignore:
Timestamp:
Nov 21, 2005, 11:27:39 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: the const collision detection war - strike

Location:
trunk/src/lib/math
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/math/vector.cc

    r5672 r5688  
    513513 * @param c: third point
    514514*/
    515 Plane::Plane (Vector a, Vector b, Vector c)
     515Plane::Plane (const Vector& a, const Vector& b, const Vector& c)
    516516{
    517517  n = (a-b).cross(c-b);
     
    524524 * @param p: anchor point
    525525*/
    526 Plane::Plane (Vector norm, Vector p)
     526Plane::Plane (const Vector& norm, const Vector& p)
    527527{
    528528  n = norm;
     
    536536  * @param p: anchor point
    537537*/
    538 Plane::Plane (Vector norm, sVec3D g)
     538Plane::Plane (const Vector& norm, const sVec3D& g)
    539539{
    540540  Vector p(g[0], g[1], g[2]);
  • trunk/src/lib/math/vector.h

    r5672 r5688  
    276276  float k;    //!< Offset constant
    277277
    278   Plane (Vector a, Vector b, Vector c);
    279   Plane (Vector norm, Vector p);
    280   Plane (Vector norm, sVec3D p);
    281   Plane (Vector n, float k) : n(n), k(k) {} //!< assignment constructor
     278  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
    282282  Plane () : n(Vector(1,1,1)), k(0) {}
    283283  ~Plane () {}
Note: See TracChangeset for help on using the changeset viewer.