Open Glavin001 opened 9 years ago
class Object3D virtual bool hit() virtual box bounding-box()
box sphere::bounding-box () vector3f min = center - vec3(radius, radius, radius); vector3f max = center + vec3(radius, radius, radius); return box(min, max);
Object3D
Bounding box for Sphere
Bounding box for Triangle