Changeset 2686 for GTP/trunk/Lib/Vis/Preprocessing/src/AxisAlignedBox3.cpp
- Timestamp:
- 05/18/08 00:30:13 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/AxisAlignedBox3.cpp
r2609 r2686 2482 2482 } 2483 2483 2484 } 2485 2484 2485 void AxisAlignedBox3::ClampToBox(Vector3 &pt) const 2486 { 2487 if (pt.x > mMax.x) pt.x = mMax.x; 2488 if (pt.y > mMax.y) pt.y = mMax.y; 2489 if (pt.z > mMax.z) pt.z = mMax.z; 2490 2491 if (pt.x < mMin.x) pt.x = mMin.x; 2492 if (pt.y < mMin.y) pt.y = mMin.y; 2493 if (pt.z < mMin.z) pt.z = mMin.z; 2494 } 2495 2496 } 2497
Note: See TracChangeset
for help on using the changeset viewer.