Changeset 7583 in orxonox.OLD for branches/cd/src/lib/math
- Timestamp:
- May 11, 2006, 12:06:06 AM (19 years ago)
- Location:
- branches/cd/src/lib/math
- Files:
-
- 2 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]); -
branches/cd/src/lib/math/plane.h
r6617 r7583 51 51 Vector intersectLine (const Line& l) const; 52 52 float distancePoint (const Vector& p) const; 53 float distancePoint (const sVec3D& p) const; 53 // float distancePoint (const sVec3D& p) const; 54 float distancePoint (const float* p) const; 54 55 float locatePoint (const Vector& p) const; 55 56 };
Note: See TracChangeset
for help on using the changeset viewer.