mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 23:11:49 +00:00
AABB.inside fix
This commit is contained in:
parent
7add5e6dcb
commit
f3889421d8
1 changed files with 2 additions and 2 deletions
|
|
@ -23,8 +23,8 @@ struct AABB {
|
||||||
inline bool inside(const glm::vec3 pos) const {
|
inline bool inside(const glm::vec3 pos) const {
|
||||||
const glm::vec3 p = min();
|
const glm::vec3 p = min();
|
||||||
const glm::vec3 s = size();
|
const glm::vec3 s = size();
|
||||||
return !(pos.x < p.x || pos.y < p.y ||
|
return !(pos.x < p.x || pos.y < p.y || pos.z < p.z ||
|
||||||
pos.x >= p.x+s.x || pos.y >= p.y+s.y);
|
pos.x >= p.x+s.x || pos.y >= p.y+s.y || pos.z >= p.z+s.z);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue