Ignore:
Timestamp:
05/18/08 00:30:13 (16 years ago)
Author:
mattausch
Message:

fixed several problems

File:
1 edited

Legend:

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

    r2609 r2686  
    24822482} 
    24832483 
    2484 } 
    2485  
     2484 
     2485void 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.