Changeset cb2b9a for molecuilder/src/Plane.cpp
- Timestamp:
- Apr 30, 2010, 9:35:01 AM (15 years ago)
- Children:
- f70c2a
- Parents:
- aab470
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/Plane.cpp
raab470 rcb2b9a 165 165 166 166 // test whether resulting vector really is on plane 167 ASSERT(fabs(res.ScalarProduct( (*normalVector.get())) - offset) < MYEPSILON,167 ASSERT(fabs(res.ScalarProduct(*normalVector) - offset) < MYEPSILON, 168 168 "Calculated line-Plane intersection does not lie on plane."); 169 169 return res; … … 191 191 192 192 bool Plane::isContained(Vector &point){ 193 return ( point.ScalarProduct(*normalVector) - offset) < MYEPSILON;193 return (fabs(point.ScalarProduct(*normalVector) - offset)) < MYEPSILON; 194 194 }
Note:
See TracChangeset
for help on using the changeset viewer.