18#ifndef INCLUDED_BOUNDINGSPHERE
19#define INCLUDED_BOUNDINGSPHERE
Definition: BoundingBoxAligned.h:34
Definition: BoundingSphere.h:26
static CBoundingSphere FromSweptBox(const CBoundingBoxAligned &bbox)
Construct a bounding sphere that encompasses a bounding box swept through all possible rotations arou...
Definition: BoundingSphere.cpp:23
CVector3D m_Center
Definition: BoundingSphere.h:55
const CVector3D & GetCenter() const
Definition: BoundingSphere.h:32
float m_Radius
Definition: BoundingSphere.h:56
CBoundingSphere()
Definition: BoundingSphere.h:28
CBoundingSphere(const CVector3D ¢er, float radius)
Definition: BoundingSphere.h:30
bool RayIntersect(const CVector3D &origin, const CVector3D &dir) const
Check if the ray, defined by an origin point and a direction unit vector interesects with the sphere.
Definition: BoundingSphere.cpp:34
float GetRadius() const
Definition: BoundingSphere.h:37
Definition: Vector3D.h:31