mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
Added is_valid method to BoundingBox.
This commit is contained in:
parent
3dc0d1ad5d
commit
0f730d213e
1 changed files with 7 additions and 0 deletions
|
|
@ -83,6 +83,13 @@ struct BoundingBox
|
|||
return *this;
|
||||
}
|
||||
|
||||
inline bool is_valid() {
|
||||
return xmin <= xmax &&
|
||||
ymin <= ymax &&
|
||||
zmin <= zmax;
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue