29 #ifndef __BV_SPHERE_H__
30 #define __BV_SPHERE_H__
184 float r = ( p -
origin ).LengthSqr();
188 radius += 0.5f * ( r -
radius );
247 origin = point + 0.5f * translation;
GLsizei const GLfloat * points
const idVec3 & GetOrigin(void) const
bool operator==(const idSphere &a) const
bool IntersectsSphere(const idSphere &s) const
bool Compare(const idVec3 &a) const
bool AddSphere(const idSphere &s)
idSphere & ExpandSelf(const float d)
static float Sqrt(float x)
float PlaneDistance(const idPlane &plane) const
idSphere Expand(const float d) const
float operator[](const int index) const
bool ContainsPoint(const idVec3 &p) const
idSphere & TranslateSelf(const idVec3 &translation)
static float Fabs(float f)
float GetRadius(void) const
bool Compare(const idSphere &a) const
void FromSphereTranslation(const idSphere &sphere, const idVec3 &start, const idVec3 &translation)
void FromPointRotation(const idVec3 &point, const idRotation &rotation)
float LengthSqr(void) const
bool operator!=(const idSphere &a) const
int PlaneSide(const idPlane &plane, const float epsilon=ON_EPSILON) const
GLubyte GLubyte GLubyte a
bool LineIntersection(const idVec3 &start, const idVec3 &end) const
void SetOrigin(const idVec3 &o)
void FromPointTranslation(const idVec3 &point, const idVec3 &translation)
GLdouble GLdouble GLdouble r
idSphere & operator+=(const idVec3 &t)
bool IsCleared(void) const
void SetRadius(const float r)
void FromPoints(const idVec3 *points, const int numPoints)
idSphere operator+(const idVec3 &t) const
bool AddPoint(const idVec3 &p)
void AxisProjection(const idVec3 &dir, float &min, float &max) const
void FromSphereRotation(const idSphere &sphere, const idVec3 &start, const idRotation &rotation)
idSphere Translate(const idVec3 &translation) const
bool RayIntersection(const idVec3 &start, const idVec3 &dir, float &scale1, float &scale2) const