Changeset 433 for trunk/VUT/GtpVisibilityPreprocessor/src/Ray.cpp
- Timestamp:
- 11/25/05 14:29:09 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/Ray.cpp
r430 r433 222 222 Ray::Ray(const VssRay &vssRay): 223 223 loc(vssRay.mOrigin), 224 sourceObject(0, vssRay.mOriginObject, 0), 225 dir(Normalize(vssRay.GetDir())) 226 { 227 intersections.push_back(Intersection(vssRay.mT, vssRay.mTerminationObject, 0)); 228 } 224 sourceObject(0, vssRay.mOriginObject, 0) 225 { 226 const float dist = Distance(vssRay.mTermination, vssRay.mOrigin); 227 228 if (dist) 229 dir = vssRay.GetDir() / dist; 230 231 if (!vssRay.mTerminationObject) 232 Debug << "error!" << endl; 233 234 intersections.push_back(Intersection(dist, vssRay.mTerminationObject, 0)); 235 236 Precompute(); 237 }
Note: See TracChangeset
for help on using the changeset viewer.