Ignore:
Timestamp:
07/18/05 11:27:52 (19 years ago)
Author:
bittner
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/AxisAlignedBox3.h

    r170 r177  
    104104 
    105105   
     106  int 
     107  Side(const Plane3 &plane) const; 
    106108 
    107109  // Overlap returns 1 if the two axis-aligned boxes overlap .. even weakly 
     
    123125 
    124126  virtual int IsInside(const Vector3 &v) const; 
    125  
     127   
    126128  // Test if the box is really sensefull 
    127129  virtual bool IsCorrect(); 
     
    167169  //    1 ... the cube contains fully the box 
    168170  int MutualPositionWithCube(const Vector3 &center, float halfSize) const; 
     171 
     172 
     173  Vector3 GetRandomPoint() { 
     174    Vector3 size = Size(); 
     175    return mMin + Vector3(RandomValue(0, size.x), 
     176                          RandomValue(0, size.y), 
     177                          RandomValue(0, size.z));  
     178  } 
    169179   
    170180  // Returns the smallest axis-aligned box that includes all points 
     
    181191                                          const Matrix4x4 &tform); 
    182192 
     193   
    183194  // returns true when two boxes are completely equal 
    184195  friend inline int operator== (const AxisAlignedBox3 &A, const AxisAlignedBox3 &B); 
Note: See TracChangeset for help on using the changeset viewer.