Ignore:
Timestamp:
10/26/08 18:29:27 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r3065 r3070  
    15051505 
    15061506 
    1507 } 
    1508  
     1507int AxisAlignedBox3::MajorAxis() const 
     1508{ 
     1509        const Vector3 sizeVec = mMax - mMin; 
     1510 
     1511        int axis; 
     1512 
     1513        if (sizeVec.x > sizeVec.y) axis = (sizeVec.x > sizeVec.z) ? 0 : 2; 
     1514        else axis = (sizeVec.y > sizeVec.z) ? 1 : 2; 
     1515 
     1516        return axis; 
     1517} 
     1518 
     1519 
     1520} 
     1521 
Note: See TracChangeset for help on using the changeset viewer.