when checking if some object is within a certain area, which approach would have better performance if using glm library?
vec3 pos;
// Using a bounding box to represent that area
1) if ( pos.x > box.MinX && pos.x < box.MaxX
&& pos.y > box.MinY....) { // do something..}
// Using a sphere to represent that area
2) if ( glm::length ( pos - sphere.centerPosition ) <= sphere.radius ) { // do something..}