Changeset 7583 in orxonox.OLD for branches/cd/src/lib/math/plane.cc
- Timestamp:
- May 11, 2006, 12:06:06 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cd/src/lib/math/plane.cc
r6617 r7583 222 222 } 223 223 224 224 225 /** 225 226 * calculate the two points of minimal distance of two lines … … 324 325 * @return the distance between the plane and the point (can be negative) 325 326 */ 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 */ 341 float Plane::distancePoint (const float* p) const 327 342 { 328 343 Vector s(p[0], p[1], p[2]);
Note: See TracChangeset
for help on using the changeset viewer.