#include <GteBoundingSphere.h>
Public Member Functions | |
BoundingSphere () | |
BoundingSphere (BoundingSphere const &sphere) | |
void | ComputeFromData (int numVertices, int vertexSize, char const *data) |
Vector4< float > | GetCenter () const |
float | GetRadius () const |
void | GrowToContain (BoundingSphere const &sphere) |
BoundingSphere & | operator= (BoundingSphere const &sphere) |
void | SetCenter (Vector4< float > const ¢er) |
void | SetRadius (float radius) |
bool | TestIntersection (Vector4< float > const &origin, Vector4< float > const &direction, float tmin, float tmax) const |
bool | TestIntersection (BoundingSphere const &sphere) const |
bool | TestIntersection (BoundingSphere const &sphere, float tmax, Vector4< float > const &velocity0, Vector4< float > const &velocity1) const |
void | TransformBy (Transform const &transform, BoundingSphere &sphere) const |
int | WhichSide (CullingPlane const &plane) const |
~BoundingSphere () | |
Private Attributes | |
Vector4< float > | mTuple |
Definition at line 16 of file GteBoundingSphere.h.
BoundingSphere::~BoundingSphere | ( | ) |
Definition at line 13 of file GteBoundingSphere.cpp.
BoundingSphere::BoundingSphere | ( | ) |
Definition at line 17 of file GteBoundingSphere.cpp.
BoundingSphere::BoundingSphere | ( | BoundingSphere const & | sphere | ) |
Definition at line 23 of file GteBoundingSphere.cpp.
Definition at line 106 of file GteBoundingSphere.cpp.
|
inline |
Definition at line 99 of file GteBoundingSphere.h.
|
inline |
Definition at line 104 of file GteBoundingSphere.h.
void BoundingSphere::GrowToContain | ( | BoundingSphere const & | sphere | ) |
Definition at line 53 of file GteBoundingSphere.cpp.
BoundingSphere & BoundingSphere::operator= | ( | BoundingSphere const & | sphere | ) |
Definition at line 29 of file GteBoundingSphere.cpp.
Definition at line 87 of file GteBoundingSphere.h.
|
inline |
Definition at line 94 of file GteBoundingSphere.h.
bool BoundingSphere::TestIntersection | ( | Vector4< float > const & | origin, |
Vector4< float > const & | direction, | ||
float | tmin, | ||
float | tmax | ||
) | const |
Definition at line 145 of file GteBoundingSphere.cpp.
bool BoundingSphere::TestIntersection | ( | BoundingSphere const & | sphere | ) | const |
Definition at line 233 of file GteBoundingSphere.cpp.
bool BoundingSphere::TestIntersection | ( | BoundingSphere const & | sphere, |
float | tmax, | ||
Vector4< float > const & | velocity0, | ||
Vector4< float > const & | velocity1 | ||
) | const |
Definition at line 249 of file GteBoundingSphere.cpp.
void BoundingSphere::TransformBy | ( | Transform const & | transform, |
BoundingSphere & | sphere | ||
) | const |
Definition at line 95 of file GteBoundingSphere.cpp.
int BoundingSphere::WhichSide | ( | CullingPlane const & | plane | ) | const |
Definition at line 35 of file GteBoundingSphere.cpp.
|
private |
Definition at line 83 of file GteBoundingSphere.h.