Add geom::box::full
This commit is contained in:
parent
c2b0c6e41e
commit
76c714b158
1 changed files with 8 additions and 1 deletions
|
|
@ -24,7 +24,6 @@ namespace psemek::geom
|
|||
return axes[i];
|
||||
}
|
||||
|
||||
// singleton box
|
||||
static box singleton(point_type const & p)
|
||||
{
|
||||
box b;
|
||||
|
|
@ -33,6 +32,14 @@ namespace psemek::geom
|
|||
return b;
|
||||
}
|
||||
|
||||
static box full()
|
||||
{
|
||||
box b;
|
||||
for (std::size_t i = 0; i < N; ++i)
|
||||
b.axes[i] = interval<T>::full();
|
||||
return b;
|
||||
}
|
||||
|
||||
bool empty() const
|
||||
{
|
||||
for (auto const & i : axes)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue