Changeset 290 for trunk/VUT/GtpVisibilityPreprocessor/src/Plane3.h
- Timestamp:
- 09/19/05 03:47:29 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/Plane3.h
r289 r290 48 48 if (signum(dv) == 0) 49 49 { 50 if (coplanar) 51 (*coplanar) = true; 52 50 if (coplanar) (*coplanar) = true; 51 if (t) (*t) = 1; 53 52 return a; 54 53 } 54 55 float u = - Distance(a) / dv; // TODO: could be done more efficiently 55 56 56 float u = - Distance(a) / dv; // TODO: could be done more efficiently 57 //Debug << "t: " << u << ", b - a: " << v << ", norm: " << mNormal << ", dist(a): " << - Distance(a) << ", dv: " << dv << endl; 58 if (coplanar) 59 (*coplanar) = false; 60 61 if (t) 62 (*t) = u; 63 57 if (coplanar) (*coplanar) = false; 58 if (t) (*t) = u; 59 60 //Debug << "t: " << u << ", b - a: " << v << ", norm: " << mNormal << ", dist(a): " << - Distance(a) << ", dv: " << dv << endl; 64 61 //return a - Distance(a) * b / dv + Distance(a) * a / dv; // NOTE: gives better precision than calclulating a + u * v 65 62 return a + u * v;
Note: See TracChangeset
for help on using the changeset viewer.