Ignore:
Timestamp:
07/18/05 11:27:52 (19 years ago)
Author:
bittner
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/Plane3.h

    r162 r177  
    2323  } 
    2424 
     25  float Distance(const Vector3 &v) const { 
     26    return DotProd(v, mNormal) + mD; 
     27  } 
     28 
     29  int Side(const Vector3 &v, const float threshold = 1e-6) const { 
     30    return signum(Distance(v), threshold); 
     31  } 
     32   
    2533  friend ostream &operator<<(ostream &s, const Plane3 p) { 
    2634    s<<p.mNormal<<" "<<p.mD; 
Note: See TracChangeset for help on using the changeset viewer.