Class representing a Sphere.
Implements body concept, i.e. a fastOverlapCheck and a contains() function, which can be used to initialize fields. For details about the body concept see BodyOverlapFunctions.h
#include <Sphere.h>
Public Member Functions | |
Sphere (const Vector3< real_t > &midp, real_t rad) | |
Sphere (const Sphere &o)=default | |
void | setMidpoint (const Vector3< real_t > &point) |
void | setMidpoint (real_t newVal, uint_t coord) |
void | setRadius (real_t newRadius) |
const Vector3< real_t > & | midpoint () const |
real_t | radius () const |
const AABB & | boundingBox () const |
const AABB & | innerBox () const |
Private Member Functions | |
void | updateBoxes () |
Recalculates boundingBox_ and innerBox_. More... | |
Private Attributes | |
Vector3< real_t > | midpoint_ |
real_t | radius_ |
AABB | boundingBox_ |
AABB | innerBox_ |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Recalculates boundingBox_ and innerBox_.
|
private |
|
private |
|
private |