Changeset 438 for trunk/VUT/GtpVisibilityPreprocessor/src/VssRay.cpp
- Timestamp:
- 11/28/05 20:08:24 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/VssRay.cpp
r382 r438 9 9 bool 10 10 VssRay::ComputeMinMaxT(const AxisAlignedBox3 &box, 11 12 11 float &tmin, 12 float &tmax) const 13 13 { 14 14 … … 144 144 145 145 float 146 VssRay::GetDirParam(const int axis, const Vector3 dir) 147 { 148 return (axis == 0) ? atan2(dir.x, dir.z) : asin(dir.y); 149 } 150 151 float 146 152 VssRay::GetDirParametrization(const int axis) const 147 153 { 148 float angle; 149 Vector3 dir = GetNormalizedDir(); 150 if (axis == 0) { 151 angle = atan2(dir.x, dir.z); 152 } else { 153 angle = asin(dir.y); 154 } 155 return angle; 154 Vector3 dir = GetNormalizedDir(); 155 return GetDirParam(axis, dir); 156 156 }
Note: See TracChangeset
for help on using the changeset viewer.