Changeset 448 for trunk/VUT/GtpVisibilityPreprocessor/src/Ray.cpp
- Timestamp:
- 12/05/05 04:42:54 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/Ray.cpp
r444 r448 225 225 mType(LOCAL_RAY) 226 226 { 227 const float dist = Distance(vssRay.mTermination, vssRay.mOrigin); 228 229 if (dist) 230 dir = vssRay.GetDir() / dist; 227 float len = vssRay.Length(); 228 229 if (!len) 230 len = Limits::Small; 231 232 dir = vssRay.GetDir() / len; 231 233 232 234 if (vssRay.mTerminationObject) 233 intersections.push_back(Intersection( dist, vssRay.mTerminationObject, 0));235 intersections.push_back(Intersection(len, vssRay.mTerminationObject, 0)); 234 236 235 237 Precompute();
Note: See TracChangeset
for help on using the changeset viewer.