#include <ContactGeometryImpl.h>
Public Member Functions | |
SphereImpl (Real radius) | |
ContactGeometryImpl * | clone () const |
Real | getRadius () const |
void | setRadius (Real r) |
Vec3 | findNearestPoint (const Vec3 &position, bool &inside, UnitVec3 &normal) const |
bool | intersectsRay (const Vec3 &origin, const UnitVec3 &direction, Real &distance, UnitVec3 &normal) const |
Static Public Member Functions | |
static const std::string & | Type () |
SphereImpl | ( | Real | radius | ) | [inline] |
Referenced by ContactGeometry::SphereImpl::clone().
ContactGeometryImpl* clone | ( | ) | const [inline, virtual] |
Real getRadius | ( | ) | const [inline] |
void setRadius | ( | Real | r | ) | [inline] |
static const std::string& Type | ( | ) | [inline, static] |
References ContactGeometryImpl::type.
Implements ContactGeometryImpl.
bool intersectsRay | ( | const Vec3 & | origin, | |
const UnitVec3 & | direction, | |||
Real & | distance, | |||
UnitVec3 & | normal | |||
) | const [virtual] |
Implements ContactGeometryImpl.