Add box::dimensions
This commit is contained in:
parent
486f5f5a77
commit
ef3fa4b091
1 changed files with 8 additions and 0 deletions
|
|
@ -49,6 +49,14 @@ namespace psemek::geom
|
|||
return result;
|
||||
}
|
||||
|
||||
geom::vector<T, N> dimensions() const
|
||||
{
|
||||
geom::vector<T, N> result;
|
||||
for (std::size_t i = 0; i < N; ++i)
|
||||
result[i] = axes[i].length();
|
||||
return result;
|
||||
}
|
||||
|
||||
point_type center() const
|
||||
{
|
||||
point_type p;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue