Class representing a Cylinder.
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 <Cylinder.h>
Public Member Functions | |
Cylinder (const Vector3< real_t > &_start, const Vector3< real_t > &_end, real_t _rad) | |
void | setStart (const Vector3< real_t > &point) |
void | setStart (real_t newVal, uint_t coord) |
void | setEnd (const Vector3< real_t > &point) |
void | setEnd (real_t newVal, uint_t coord) |
void | setRadius (const real_t value) |
const Vector3< real_t > & | start () const |
const Vector3< real_t > & | end () const |
const Vector3< real_t > & | dir () const |
real_t | radius () const |
real_t | length () const |
const AABB & | boundingBox () const |
Private Member Functions | |
void | update () |
Recalculates boundingBox_ and dir_. More... | |
Private Attributes | |
Vector3< real_t > | start_ |
Vector3< real_t > | end_ |
real_t | rad_ |
Vector3< real_t > | dir_ |
real_t | len_ |
AABB | boundingBox_ |
|
explicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Recalculates boundingBox_ and dir_.
|
private |
|
private |
|
private |