|
libdonut 2.3.6
Application framework for cross-platform game development in C++20
|
Generic axis-aligned box shape with minimum and maximum extents. More...
#include <donut/shapes.hpp>
Public Member Functions | |
| constexpr bool | contains (const Point< L, T > &point) const noexcept |
| Check if a given point is contained within the extents of this box. | |
Public Attributes | |
| Point< L, T > | min |
| Position with the minimum coordinates of the box extents on each coordinate axis. | |
| Point< L, T > | max |
| Position with the maximum coordinates of the box extents on each coordinate axis. | |
Generic axis-aligned box shape with minimum and maximum extents.
| L | number of vector dimensions. |
| T | component type for vector coordinates. |
|
constexprnoexcept |
Check if a given point is contained within the extents of this box.
| Point<L, T> donut::Box< L, T >::min |
Position with the minimum coordinates of the box extents on each coordinate axis.
| Point<L, T> donut::Box< L, T >::max |
Position with the maximum coordinates of the box extents on each coordinate axis.