|
|
constexpr | AABB () noexcept=default |
| | Default constructor.
|
| |
|
constexpr | AABB (AABB const &) noexcept=default |
| | Copy constructor.
|
| |
| template<std::convertible_to< T > U> |
| constexpr | AABB (AABB< Dim, U > const &other) noexcept |
| | Converting constructor from an AABB with a different scalar type.
|
| |
| constexpr | AABB (Vec< Dim, T > const ¢er, T half_length) noexcept |
| | Constructs an AABB from a center point and a half-length.
|
| |
| constexpr | AABB (Vec< Dim, T > const &min, Vec< Dim, T > const &max) noexcept |
| | Constructs an AABB from a minimum and maximum point.
|
| |
| constexpr AABB | aabb () const noexcept |
| | Returns the AABB of the AABB.
|
| |
| constexpr Vec< Dim, T > | center () const noexcept |
| | Returns the center of the AABB.
|
| |
| constexpr T | diagonal () const noexcept |
| | Returns the diagonal length of the AABB.
|
| |
| constexpr Vec< Dim, T > | halfLength () const noexcept |
| | Returns the half-length (extent) of the AABB in each dimension.
|
| |
| constexpr bool | isDegenerate () const noexcept |
| | Returns whether the AABB is degenerate.
|
| |
| constexpr Vec< Dim, T > | length () const noexcept |
| | Returns the length (extent) of the AABB in each dimension.
|
| |
| bool | operator== (AABB const &) const =default |
| | Equality operator.
|
| |
| constexpr T | volume () const noexcept |
| | Returns the volume of the AABB.
|
| |
template<std::size_t Dim = 3, std::floating_point T = float>
struct ufo::AABB< Dim, T >
Axis-Aligned Bounding Box (AABB) in Dim-dimensional space.
- Template Parameters
-
| Dim | The dimensionality of the space (default: 3). |
| T | The numeric type (default: float), must be a floating-point type. |
Represents a bounding box defined by a minimum and maximum point.
Definition at line 70 of file aabb.hpp.