#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 |
void | getBoundingSphere (Vec3 ¢er, Real &radius) const |
Static Public Member Functions | |
static const std::string & | Type () |
SphereImpl | ( | Real | radius | ) | [inline] |
Referenced by SphereImpl::clone().
ContactGeometryImpl* clone | ( | ) | const [inline, virtual] |
Implements ContactGeometryImpl.
References SphereImpl::SphereImpl().
Implements ContactGeometryImpl.
void getBoundingSphere | ( | Vec3 & | center, | |
Real & | radius | |||
) | const [virtual] |
Implements ContactGeometryImpl.
Real getRadius | ( | ) | const [inline] |
bool intersectsRay | ( | const Vec3 & | origin, | |
const UnitVec3 & | direction, | |||
Real & | distance, | |||
UnitVec3 & | normal | |||
) | const [virtual] |
Implements ContactGeometryImpl.
void setRadius | ( | Real | r | ) | [inline] |
static const std::string& Type | ( | ) | [inline, static] |
References ContactGeometryImpl::type.