Ignore:
Timestamp:
Apr 30, 2010, 9:35:01 AM (15 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
f70c2a
Parents:
aab470
Message:

FIX: small bug in the Plane::isContained() method

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/Plane.cpp

    raab470 rcb2b9a  
    165165
    166166  // 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,
    168168         "Calculated line-Plane intersection does not lie on plane.");
    169169  return res;
     
    191191
    192192bool Plane::isContained(Vector &point){
    193   return (point.ScalarProduct(*normalVector) - offset) < MYEPSILON;
     193  return (fabs(point.ScalarProduct(*normalVector) - offset)) < MYEPSILON;
    194194}
Note: See TracChangeset for help on using the changeset viewer.