|
HighMap library (C++)
|
Axis-aligned 2D bounding box. More...
#include <terrain_tri_mesh.hpp>
Public Member Functions | |
| bool | contains (const glm::vec2 &p) const |
| Check whether a point lies inside the box. | |
| glm::vec2 | clamp (const glm::vec2 &p) const |
| Clamp a point to the box. | |
Public Attributes | |
| glm::vec2 | min |
| glm::vec2 | max |
Axis-aligned 2D bounding box.
| bool hmap::TerrainTriMesh::BoundingBox::contains | ( | const glm::vec2 & | p | ) | const |
Check whether a point lies inside the box.
| glm::vec2 hmap::TerrainTriMesh::BoundingBox::clamp | ( | const glm::vec2 & | p | ) | const |
Clamp a point to the box.
| glm::vec2 hmap::TerrainTriMesh::BoundingBox::min |
| glm::vec2 hmap::TerrainTriMesh::BoundingBox::max |