65 bsphere&
from_points(
const char* point_buffer,
unsigned int point_count,
unsigned int point_stride);
Provides storage for common representation of spherical bounding volume, and wraps up common function...
bool contains_point(const vec3 &point) const
Tests to see if the specified point falls within this bounding sphere or not. A point precisely on th...
bsphere & operator-=(const vec3 &shift)
Adjusts the position of the bounding sphere by the specified amount.
bsphere(float x, float y, float z, float _radius)
bool operator==(const bsphere &bounds) const
Test for equality between this bounding sphere and another.
bool operator!=(const bsphere &bounds) const
Test for inequality between this bounding sphere and another.
bsphere(const vec3 &_position, float _radius)
bsphere & from_points(const char *point_buffer, unsigned int point_count, unsigned int point_stride)
Calculates a tight fitting bounding sphere from the points supplied.
bool contains_point(const vec3 &point, float tolerance) const
Tests to see if the specified point falls within this bounding sphere or not, taking into account the...
bsphere & operator+=(const vec3 &shift)
Adjusts the position of the bounding sphere by the specified amount.