Changeset 1112 for GTP/trunk/Lib/Vis/Preprocessing/src/AxisAlignedBox3.h
- Timestamp:
- 07/10/06 19:21:19 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/AxisAlignedBox3.h
r1012 r1112 176 176 mMax = center + newSize; 177 177 } 178 178 179 void Scale(const Vector3 &scale) { 180 Vector3 newSize = Size()*(scale*0.5f); 181 Vector3 center = Center(); 182 mMin = center - newSize; 183 mMax = center + newSize; 184 } 185 186 /** Translates the box with the factor. 187 */ 188 void Translate(const Vector3 &shift) { 189 mMin += shift; 190 mMax += shift; 191 } 192 179 193 /** Returns the square of the minimal and maximal distance to 180 194 a point on the box.
Note: See TracChangeset
for help on using the changeset viewer.