BoundingSphere

class BoundingSphere

Bases: FiniteBoundingVolume

This defines a bounding sphere, consisting of a center and a radius. It is always a sphere, and never an ellipsoid or other quadric.

Inheritance diagram

Inheritance diagram of BoundingSphere

BoundingSphere(void)
explicit BoundingSphere(LPoint3 const &center, PN_stdfloat radius)

Constructs an empty sphere.

Constructs a specific sphere.

LPoint3 get_center(void) const
static TypeHandle get_class_type(void)
PN_stdfloat get_radius(void) const
void set_center(LPoint3 const &center)

Sets the center point of the sphere.

void set_radius(PN_stdfloat radius)

Sets the radius of the sphere.

bool validate_ptr(void const *ptr)