58 bool Compare(
const idBox &a,
const float epsilon )
const;
133 this->
center = ( bounds[0] + bounds[1] ) * 0.5
f;
139 this->
center = ( bounds[0] + bounds[1] ) * 0.5
f;
141 this->center = origin + this->center *
axis;
226 return (
extents * 2.0
f ).LengthSqr();
287 for (
int i = 0;
i < 3;
i++ ) {
292 bounds[0][
i] = d1 - d2;
293 bounds[1][
i] = d1 + d2;
bool AddPoint(const idVec3 &v)
GLsizei const GLfloat * points
static const float INFINITY
void FromPointRotation(const idVec3 &point, const idRotation &rotation)
idBox operator+(const idVec3 &t) const
bool Compare(const idVec3 &a) const
bool Compare(const idMat3 &a) const
const idVec3 & GetExtents(void) const
bool ContainsPoint(const idVec3 &p) const
bool operator==(const idBox &a) const
bool AddBox(const idBox &a)
idBox operator*(const idMat3 &r) const
idBox & operator+=(const idVec3 &t)
idBox & operator*=(const idMat3 &r)
void ToPoints(idVec3 points[8]) const
void FromBoxTranslation(const idBox &box, const idVec3 &translation)
idBox Expand(const float d) const
idSphere ToSphere(void) const
void FromPointTranslation(const idVec3 &point, const idVec3 &translation)
float GetVolume(void) const
idBox Rotate(const idMat3 &rotation) const
int GetParallelProjectionSilhouetteVerts(const idVec3 &projectionDir, idVec3 silVerts[6]) const
idBox Translate(const idVec3 &translation) const
static float Fabs(float f)
idBox & operator-=(const idBox &a)
bool Compare(const idBox &a) const
bool operator!=(const idBox &a) const
idBox & TranslateSelf(const idVec3 &translation)
bool IsCleared(void) const
idBox & RotateSelf(const idMat3 &rotation)
GLubyte GLubyte GLubyte a
const idMat3 & GetAxis(void) const
const idVec3 & GetCenter(void) const
GLdouble GLdouble GLdouble r
bool IntersectsBox(const idBox &a) const
void FromBoxRotation(const idBox &box, const idRotation &rotation)
idBox & ExpandSelf(const float d)
int GetProjectionSilhouetteVerts(const idVec3 &projectionOrigin, idVec3 silVerts[6]) const
float PlaneDistance(const idPlane &plane) const
bool LineIntersection(const idVec3 &start, const idVec3 &end) const
bool RayIntersection(const idVec3 &start, const idVec3 &dir, float &scale1, float &scale2) const
idBox operator-(const idBox &a) const
int PlaneSide(const idPlane &plane, const float epsilon=ON_EPSILON) const
void FromPoints(const idVec3 *points, const int numPoints)
void AxisProjection(const idVec3 &dir, float &min, float &max) const