|
G3D::Sphere Class ReferenceSphere.
More...
#include <Sphere.h>
List of all members.
|
Public Member Functions |
| float | area () const |
| bool | contains (const Vector3 &point) const |
| bool | culledBy (const Array< Plane > &plane, int32 &cullingPlaneIndex=dummy, const uint32 testMask=-1) const |
| bool | culledBy (const Array< Plane > &plane, int32 &cullingPlaneIndex, const uint32 testMask, uint32 &childMask) const |
| bool | culledBy (const class Plane *plane, int numPlanes, int32 &cullingPlaneIndex=dummy, const uint32 testMask=-1) const |
| bool | culledBy (const class Plane *plane, int numPlanes, int32 &cullingPlaneIndex, const uint32 testMask, uint32 &childMask) const |
| void | deserialize (class BinaryInput &b) |
| void | getBounds (class AABox &out) const |
| bool | operator!= (const Sphere &other) const |
| bool | operator== (const Sphere &other) const |
| Vector3 | randomInteriorPoint () const |
| Vector3 | randomSurfacePoint () const |
| void | serialize (class BinaryOutput &b) const |
| | Sphere (const Vector3 ¢er, float radius) |
| | Sphere (class BinaryInput &b) |
| | Sphere () |
| virtual std::string | toString () const |
| float | volume () const |
| virtual | ~Sphere () |
Public Attributes |
| Vector3 | center |
| float | radius |
Detailed Description
Sphere.
Constructor & Destructor Documentation
| G3D::Sphere::Sphere |
( |
|
) |
[inline] |
| G3D::Sphere::Sphere |
( |
const Vector3 & |
center, |
|
|
float |
radius | |
|
) |
| | [inline] |
| virtual G3D::Sphere::~Sphere |
( |
|
) |
[inline, virtual] |
Member Function Documentation
| float G3D::Sphere::area |
( |
|
) |
const |
| bool G3D::Sphere::contains |
( |
const Vector3 & |
point |
) |
const |
Returns true if point is less than or equal to radius away from the center.
| bool G3D::Sphere::culledBy |
( |
const Array< Plane > & |
plane, |
|
|
int32 & |
cullingPlaneIndex = dummy, |
|
|
const uint32 |
testMask = -1 | |
|
) |
| | const |
Conservative culling test that does not produce a mask for children.
| bool G3D::Sphere::culledBy |
( |
const Array< Plane > & |
plane, |
|
|
int32 & |
cullingPlaneIndex, |
|
|
const uint32 |
testMask, |
|
|
uint32 & |
childMask | |
|
) |
| | const |
| bool G3D::Sphere::culledBy |
( |
const class Plane * |
plane, |
|
|
int |
numPlanes, |
|
|
int32 & |
cullingPlaneIndex = dummy, |
|
|
const uint32 |
testMask = -1 | |
|
) |
| | const |
| bool G3D::Sphere::culledBy |
( |
const class Plane * |
plane, |
|
|
int |
numPlanes, |
|
|
int32 & |
cullingPlaneIndex, |
|
|
const uint32 |
testMask, |
|
|
uint32 & |
childMask | |
|
) |
| | const |
| void G3D::Sphere::deserialize |
( |
class BinaryInput & |
b |
) |
|
| void G3D::Sphere::getBounds |
( |
class AABox & |
out |
) |
const |
| bool G3D::Sphere::operator!= |
( |
const Sphere & |
other |
) |
const [inline] |
| bool G3D::Sphere::operator== |
( |
const Sphere & |
other |
) |
const [inline] |
| Vector3 G3D::Sphere::randomInteriorPoint |
( |
|
) |
const |
Uniformly distributed on the interior (includes surface).
| Vector3 G3D::Sphere::randomSurfacePoint |
( |
|
) |
const |
Uniformly distributed on the surface.
| void G3D::Sphere::serialize |
( |
class BinaryOutput & |
b |
) |
const |
| virtual std::string G3D::Sphere::toString |
( |
|
) |
const [virtual] |
| float G3D::Sphere::volume |
( |
|
) |
const |
Member Data Documentation
The documentation for this class was generated from the following file:
Generated on Thu Aug 2 11:40:47 2007 for G3D by
1.5.2
Hosted by
| |