Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7583 in orxonox.OLD for branches/cd/src/lib/math/plane.cc


Ignore:
Timestamp:
May 11, 2006, 12:06:06 AM (18 years ago)
Author:
patrick
Message:

cd: changing to new coordinate format

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/cd/src/lib/math/plane.cc

    r6617 r7583  
    222222}
    223223
     224
    224225/**
    225226 *  calculate the two points of minimal distance of two lines
     
    324325 * @return the distance between the plane and the point (can be negative)
    325326 */
    326 float Plane::distancePoint (const sVec3D& p) const
     327// float Plane::distancePoint (const sVec3D& p) const
     328// {
     329//   Vector s(p[0], p[1], p[2]);
     330//   float l = n.len();
     331//   if( l == 0.0) return 0.0;
     332//   return (n.dot(s) + k) / n.len();
     333// }
     334
     335
     336/**
     337 *  returns the distance between the plane and a point
     338 * @param p: a Point
     339 * @return the distance between the plane and the point (can be negative)
     340 */
     341float Plane::distancePoint (const float* p) const
    327342{
    328343  Vector s(p[0], p[1], p[2]);
Note: See TracChangeset for help on using the changeset viewer.