Changeset 1883 for GTP/trunk/Lib/Vis/Preprocessing/src/Ray.h
- Timestamp:
- 12/12/06 17:25:53 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Ray.h
r1877 r1883 316 316 struct SimpleRay 317 317 { 318 int mId;319 318 Vector3 mOrigin; 320 319 Vector3 mDirection; 320 short mType; 321 short mDistribution; 321 322 float mPdf; 322 int mType; 323 324 static int sSimpleRayId; 323 325 324 SimpleRay(): mType(Ray::LOCAL_RAY) { 325 } 326 327 SimpleRay(const Vector3 &o, 328 const Vector3 &d, 329 const short distribution, 330 const float weight 331 ): 332 mOrigin(o), 333 mDirection(d), 334 mType(Ray::LOCAL_RAY), 335 mDistribution(distribution), 336 mPdf(weight) 337 { 326 338 // mId = sSimpleRayId++; 327 339 } 328 340 329 SimpleRay(const Vector3 &o, const Vector3 &d, const float p=1.0f):330 mOrigin(o), mDirection(d), mPdf(p), mType(Ray::LOCAL_RAY) {331 // mId = sSimpleRayId++;332 }333 334 341 Vector3 Extrap(const float t) const { 335 342 return mOrigin + mDirection * t;
Note: See TracChangeset
for help on using the changeset viewer.