Changeset 177 for trunk/VUT/GtpVisibilityPreprocessor/src/Plane3.h
- Timestamp:
- 07/18/05 11:27:52 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/Plane3.h
r162 r177 23 23 } 24 24 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 25 33 friend ostream &operator<<(ostream &s, const Plane3 p) { 26 34 s<<p.mNormal<<" "<<p.mD;
Note: See TracChangeset
for help on using the changeset viewer.