mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Removing unused bounding box methods.
This commit is contained in:
parent
61d8d80e6f
commit
23f2926af1
1 changed files with 0 additions and 18 deletions
|
|
@ -75,24 +75,6 @@ struct BoundingBox
|
|||
return *this;
|
||||
}
|
||||
|
||||
// ensure bounding box contains a point
|
||||
inline void update(const Position& r) {
|
||||
xmin = std::min(xmin, r.x);
|
||||
xmax = std::max(xmax, r.x);
|
||||
ymin = std::min(ymin, r.y);
|
||||
ymax = std::max(ymax, r.y);
|
||||
zmin = std::min(zmin, r.z);
|
||||
zmax = std::max(zmax, r.z);
|
||||
}
|
||||
|
||||
// check if a point is in the box
|
||||
inline bool contains(const Position& r) const {
|
||||
if (r.x < xmin || r.x > xmax) { return false; }
|
||||
if (r.y < ymin || r.y > ymax) { return false; }
|
||||
if (r.z < zmin || r.z > zmax) { return false; }
|
||||
return true;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue