2D Axis-Aligned Bounding Box (AABB).
More...
#include <bvh.hpp>
|
| constexpr | AABB2D () noexcept=default |
| constexpr | AABB2D (const glm::vec2 &min, const glm::vec2 &max) noexcept |
| constexpr | AABB2D (float min_x, float min_y, float max_x, float max_y) noexcept |
| constexpr bool | contains (const glm::vec2 &p) const noexcept |
| constexpr bool | overlaps (const AABB2D &other) const noexcept |
| constexpr void | expand (const glm::vec2 &p) noexcept |
| constexpr void | expand (const AABB2D &other) noexcept |
| constexpr glm::vec2 | center () const noexcept |
| constexpr glm::vec2 | extent () const noexcept |
|
| glm::vec2 | min {std::numeric_limits<float>::infinity()} |
| glm::vec2 | max {-std::numeric_limits<float>::infinity()} |
2D Axis-Aligned Bounding Box (AABB).
◆ AABB2D() [1/3]
◆ AABB2D() [2/3]
| hmap::AABB2D::AABB2D |
( |
const glm::vec2 & | min, |
|
|
const glm::vec2 & | max ) |
|
inlineconstexprnoexcept |
◆ AABB2D() [3/3]
| hmap::AABB2D::AABB2D |
( |
float | min_x, |
|
|
float | min_y, |
|
|
float | max_x, |
|
|
float | max_y ) |
|
inlineconstexprnoexcept |
◆ contains()
| bool hmap::AABB2D::contains |
( |
const glm::vec2 & | p | ) |
const |
|
inlineconstexprnoexcept |
◆ overlaps()
| bool hmap::AABB2D::overlaps |
( |
const AABB2D & | other | ) |
const |
|
inlineconstexprnoexcept |
◆ expand() [1/2]
| void hmap::AABB2D::expand |
( |
const glm::vec2 & | p | ) |
|
|
inlineconstexprnoexcept |
◆ expand() [2/2]
| void hmap::AABB2D::expand |
( |
const AABB2D & | other | ) |
|
|
inlineconstexprnoexcept |
◆ center()
| glm::vec2 hmap::AABB2D::center |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ extent()
| glm::vec2 hmap::AABB2D::extent |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ min
| glm::vec2 hmap::AABB2D::min {std::numeric_limits<float>::infinity()} |
◆ max
| glm::vec2 hmap::AABB2D::max {-std::numeric_limits<float>::infinity()} |
The documentation for this struct was generated from the following file:
- HighMap/include/highmap/geometry/bvh.hpp