Class representing a Torus.
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 <Torus.h>
Public Member Functions | |
Torus (const Vector3< real_t > &_midPnt, const Vector3< real_t > &_normal, real_t _radius, real_t _distance) | |
void | setMidPoint (const Vector3< real_t > &_midPnt) |
void | setMidPoint (real_t newVal, uint_t coord) |
void | setNormal (const Vector3< real_t > &_normal) |
void | setNormal (real_t newVal, uint_t coord) |
void | setRadius (const real_t value) |
void | setDistance (const real_t value) |
const Vector3< real_t > & | normal () const |
const Vector3< real_t > & | defTan () const |
const Vector3< real_t > & | comTan () const |
const Vector3< real_t > & | midPnt () const |
real_t | radius () const |
real_t | distance () const |
const AABB & | boundingBox () const |
Private Member Functions | |
void | update () |
Recalculates boundingBox_ and dir_. More... | |
Private Attributes | |
Vector3< real_t > | midPnt_ |
Vector3< real_t > | normal_ |
real_t | radius_ |
real_t | distnc_ |
Vector3< real_t > | defTan_ |
Vector3< real_t > | comTan_ |
AABB | boundingBox_ |
|
explicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Recalculates boundingBox_ and dir_.
|
private |
|
private |
|
private |