Changeset 2237 for GTP/trunk/Lib/Vis/Preprocessing/src/RayInfo.h
- Timestamp:
- 03/12/07 18:30:52 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/RayInfo.h
r2234 r2237 3 3 4 4 #include <vector> 5 #include "VssRay.h" 5 6 6 7 7 8 namespace GtpVisibilityPreprocessor { 8 9 9 class VssRay;10 //class VssRay; 10 11 class RayInfo; 11 12 class Plane3; … … 58 59 /** Extracts the starting point of the ray segment. 59 60 */ 60 Vector3 ExtrapOrigin() const;61 inline Vector3 ExtrapOrigin() const; 61 62 62 63 /** Extracts the end point of the ray segment. 63 64 */ 64 Vector3 ExtrapTermination() const;65 inline Vector3 ExtrapTermination() const; 65 66 66 float GetMinT () const;67 float GetMaxT () const;67 inline float GetMinT () const; 68 inline float GetMaxT () const; 68 69 69 void SetMinT (const float t);70 inline void SetMinT (const float t); 70 71 71 void SetMaxT (const float t);72 inline void SetMaxT (const float t); 72 73 73 74 float SegmentLength() const; … … 99 100 }; 100 101 102 103 float RayInfo::ExtrapOrigin(const int axis) const 104 { 105 return mRay->GetOrigin(axis) + GetMinT() * mRay->GetDir(axis); 106 } 107 108 float RayInfo::ExtrapTermination(const int axis) const 109 { 110 return mRay->GetOrigin(axis) + GetMaxT() * mRay->GetDir(axis); 111 } 112 113 Vector3 RayInfo::ExtrapOrigin() const 114 { 115 return mRay->GetOrigin() + GetMinT() * mRay->GetDir(); 116 } 117 118 Vector3 RayInfo::ExtrapTermination() const 119 { 120 return mRay->GetOrigin() + GetMaxT() * mRay->GetDir(); 121 } 122 101 123 } 102 124 #endif
Note: See TracChangeset
for help on using the changeset viewer.