Changeset 382 for trunk/VUT/GtpVisibilityPreprocessor/src/VssRay.cpp
- Timestamp:
- 11/05/05 20:03:25 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/VssRay.cpp
r372 r382 141 141 return SqrDistance(point, center) < sqrRadius; 142 142 } 143 144 145 float 146 VssRay::GetDirParametrization(const int axis) const 147 { 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; 156 }
Note: See TracChangeset
for help on using the changeset viewer.