Remove dynamic-sized storage from math::box

This commit is contained in:
Nikita Lisitsa 2025-12-04 17:21:57 +03:00
parent 4b314d78c4
commit a8e08bf6d3

View file

@ -1,6 +1,5 @@
#pragma once #pragma once
#include <psemek/math/detail/array.hpp>
#include <psemek/math/interval.hpp> #include <psemek/math/interval.hpp>
#include <psemek/math/point.hpp> #include <psemek/math/point.hpp>
@ -13,7 +12,7 @@ namespace psemek::math
template <typename T, std::size_t N> template <typename T, std::size_t N>
struct box struct box
{ {
typename detail::array<interval<T>, N>::type axes; interval<T> axes[N];
using point_type = point<T, N>; using point_type = point<T, N>;
using vector_type = vector<T, N>; using vector_type = vector<T, N>;