1#ifndef LIBSBX_MATH_BOX_HPP_
2#define LIBSBX_MATH_BOX_HPP_
6#include <libsbx/math/concepts.hpp>
7#include <libsbx/math/plane.hpp>
8#include <libsbx/math/vector3.hpp>
17 using value_type = Type;
20 using size_type = std::size_t;
24 basic_box(
const std::array<plane_type, 6u>& planes) noexcept
27 basic_box(std::array<plane_type, 6u>&& planes) noexcept
28 : _planes{std::move(planes)} { }
31 for (
const auto&
plane : planes()) {
38 if (
plane.distance_to_point(vp) < -0.5f) {
46 auto planes()
const noexcept ->
const std::array<plane_type, 6u>& {
51 return _planes[index];
56 std::array<plane_type, 6u> _planes;
Definition: vector3.hpp:22
Definition: volume.hpp:11