HighMap library (C++)
Loading...
Searching...
No Matches
hmap::TerrainTriMesh::BoundingBox Struct Reference

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
 

Detailed Description

Axis-aligned 2D bounding box.

Member Function Documentation

◆ contains()

bool hmap::TerrainTriMesh::BoundingBox::contains ( const glm::vec2 &  p) const

Check whether a point lies inside the box.

◆ clamp()

glm::vec2 hmap::TerrainTriMesh::BoundingBox::clamp ( const glm::vec2 &  p) const

Clamp a point to the box.

Member Data Documentation

◆ min

glm::vec2 hmap::TerrainTriMesh::BoundingBox::min

◆ max

glm::vec2 hmap::TerrainTriMesh::BoundingBox::max

The documentation for this struct was generated from the following files: