mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
add extended blocks (block size property)
This commit is contained in:
parent
f181086d2a
commit
8aa6d5ee2d
9 changed files with 146 additions and 30 deletions
|
|
@ -8,6 +8,11 @@ struct AABB {
|
|||
glm::vec3 a {0.0f};
|
||||
glm::vec3 b {1.0f};
|
||||
|
||||
AABB() {}
|
||||
|
||||
AABB(glm::vec3 size) : a(0.0f), b(size) {
|
||||
}
|
||||
|
||||
/* Get AABB point with minimal x,y,z */
|
||||
inline glm::vec3 min() const {
|
||||
return glm::min(a, b);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue