Changeset 386 for trunk/VUT/GtpVisibilityPreprocessor/src/VssRay.h
- Timestamp:
- 11/07/05 11:27:38 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/VssRay.h
r382 r386 39 39 Vector3 mTermination; 40 40 41 /// Termination object for the ray 42 /// only the termination object is actually used 41 43 Intersectable *mOriginObject; 42 44 Intersectable *mTerminationObject; … … 62 64 Vector3 dir = GetDir(); 63 65 66 #define BIDIRECTIONAL_RAY 0 67 #if BIDIRECTIONAL_RAY 64 68 if (dir.y < 0) { 65 69 // swap objects and poits … … 68 72 dir = -dir; 69 73 } 70 74 #endif 71 75 if (dir.x > 0.0f) mFlags |= FPosDirX; 72 76 if (dir.y > 0.0f) mFlags |= FPosDirY; … … 85 89 86 90 int HitCount() const { 91 #if BIDIRECTIONAL_RAY 87 92 if (mOriginObject && mTerminationObject) 88 93 return 2; … … 90 95 return 1; 91 96 return 0; 97 #else 98 return (mTerminationObject) ? 1 : 0; 99 #endif 92 100 } 93 101
Note: See TracChangeset
for help on using the changeset viewer.