Ignore:
Timestamp:
09/18/06 18:57:34 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/AxisAlignedBox3.h

    r1414 r1415  
    7272    mMin -= v; 
    7373  } 
    74  
    7574 
    7675  void SetMin(const Vector3 &v) { 
     
    167166  /** Scales the box with the factor. 
    168167  */ 
    169   void Scale(const float scale) { 
    170         Vector3 newSize = Size()*(scale*0.5f); 
    171         Vector3 center = Center(); 
    172         mMin = center - newSize; 
    173         mMax = center + newSize; 
    174   } 
    175  
    176   void Scale(const Vector3 &scale) { 
    177         Vector3 newSize = Size()*(scale*0.5f); 
    178         Vector3 center = Center(); 
    179         mMin = center - newSize; 
    180         mMax = center + newSize; 
    181   } 
    182  
     168  void Scale(const float scale); 
     169 
     170  void Scale(const Vector3 &scale); 
     171         
    183172  /** Translates the box with the factor. 
    184173  */ 
    185   void Translate(const Vector3 &shift) { 
    186         mMin += shift; 
    187         mMax += shift; 
    188   } 
     174  void Translate(const Vector3 &shift); 
    189175 
    190176  /** Returns the square of the minimal and maximal distance to  
Note: See TracChangeset for help on using the changeset viewer.