Ignore:
Timestamp:
09/15/08 10:13:33 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/AxisAlignedBox3.cpp

    r2944 r2947  
    10381038 
    10391039 
    1040 float AxisAlignedBox3::GetMinVisibleDistance(const Plane3 &near) const 
     1040float AxisAlignedBox3::GetMinDistance(const Plane3 &near) const 
    10411041{ 
    10421042        return  near.mNormal.x * ((near.mNormal.x > 0.0f) ? mMin.x : mMax.x) + 
    10431043                        near.mNormal.y * ((near.mNormal.y > 0.0f) ? mMin.y : mMax.y) + 
    10441044                        near.mNormal.z * ((near.mNormal.z > 0.0f) ? mMin.z : mMax.z) + 
     1045                        near.mD; 
     1046} 
     1047 
     1048 
     1049float AxisAlignedBox3::GetMaxDistance(const Plane3 &near) const 
     1050{ 
     1051        return  near.mNormal.x * ((near.mNormal.x <= 0.0f) ? mMin.x : mMax.x) + 
     1052                        near.mNormal.y * ((near.mNormal.y <= 0.0f) ? mMin.y : mMax.y) + 
     1053                        near.mNormal.z * ((near.mNormal.z <= 0.0f) ? mMin.z : mMax.z) + 
    10451054                        near.mD; 
    10461055} 
Note: See TracChangeset for help on using the changeset viewer.