Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:31:03

0001 #include "BoundingBox.h"
0002 
0003 void BoundingBox::grow(const double& r, const double& z) {
0004   if (r < r_min)
0005     r_min = r;
0006   if (r > r_max)
0007     r_max = r;
0008   if (z < z_min)
0009     z_min = z;
0010   if (z > z_max)
0011     z_max = z;
0012 }
0013 
0014 void BoundingBox::grow(const double& skin) {
0015   r_min -= skin;  // yes, we allow r_min to go negative
0016   r_max += skin;
0017   z_min -= skin;
0018   z_max += skin;
0019 }