Ignore:
Timestamp:
11/05/05 20:03:25 (19 years ago)
Author:
bittner
Message:

vsspreprocessor update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/VssRay.cpp

    r372 r382  
    141141  return SqrDistance(point, center) < sqrRadius; 
    142142} 
     143 
     144 
     145float 
     146VssRay::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.