mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 20:41:49 +00:00
small refactoring
This commit is contained in:
parent
73595cd558
commit
d671188680
7 changed files with 31 additions and 26 deletions
|
|
@ -48,7 +48,7 @@ struct AABB {
|
|||
}
|
||||
|
||||
/* Check if given point is inside */
|
||||
inline bool inside(const glm::vec3 pos) const {
|
||||
inline bool contains(const glm::vec3 pos) const {
|
||||
const glm::vec3 p = min();
|
||||
const glm::vec3 s = size();
|
||||
return !(pos.x < p.x || pos.y < p.y || pos.z < p.z ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue