|
template<typename ... Args>
requires (std::is_same_v<Point<T, N>, Args> && ...) && (sizeof...(Args) > 0) |
constexpr | BoundingBox (const Args &... args) noexcept |
constexpr BoundingBox & | unite (const Point< T, N > &point) noexcept |
constexpr BoundingBox & | unite (const BoundingBox &box) noexcept |
constexpr BoundingBox & | unite (const std::vector< Point< T, N > > &points) noexcept |
constexpr BoundingBox & | unite (const std::vector< BoundingBox > &boxes) noexcept |
constexpr BoundingBox | united (const Point< T, N > &point) const noexcept |
constexpr BoundingBox & | united (const BoundingBox &box) noexcept |
constexpr BoundingBox | united (const std::vector< Point< T, N > > &points) const noexcept |
constexpr BoundingBox | united (const std::vector< BoundingBox > &boxes) const noexcept |
constexpr bool | is_overlapped (const BoundingBox &box) const noexcept |
| is_overlapped
|
constexpr BoundingBox | overlapped_box (const BoundingBox &box) const noexcept |
| Get the overlapped box.
|
constexpr bool | contains (const Point< T, N > &point) const noexcept |
| Check if the bounding box contains the point.
|
constexpr int | max_extent () const noexcept |
| Get the maximum extent of the bounding box.
|
constexpr Vector< T, N > | offset (const Point< T, N > &p) const noexcept |
| Get the offset of the point relative to the bounding box.
|
constexpr const Point< T, N > & | min () const noexcept |
| Get the minimum point of the bounding box.
|
constexpr const Point< T, N > & | max () const noexcept |
| Get the maximum point of the bounding box.
|
constexpr Point< T, N > | center () const noexcept |
| Get the center point of the bounding box.
|
constexpr Vector< T, N > | diagonal () const noexcept |
| Get the diagonal of the bounding box.
|
constexpr T | volume () const noexcept |
| Get the volume of the bounding box.
|
constexpr T | surface_area () const noexcept |
| Get the surface area of the bounding box.
|