23 float radius()
const {
return _radius; }
Bounding sphere defined by center and radius for intersection and containment tests.
BoundingSphere clone() const
void setRadius(const float radius)
const Vector3 & center() const
bool intersectsRay(const Ray &ray, Vector3 *point=nullptr) const
bool containsPoint(const Vector3 &point) const
void setCenter(const Vector3 ¢er)
bool intersectsBoundingSphere(const BoundingSphere &sphere) const
BoundingSphere & copy(const BoundingSphere &src)
Infinite ray defined by origin and direction for raycasting and picking.
3D vector for positions, directions, and normals with multi-backend SIMD acceleration.