Simbody
|
#include <ContactGeometryImpl.h>
Public Member Functions | |
SphereImpl (Real radius) | |
ContactGeometryImpl * | clone () const |
Real | getRadius () const |
void | setRadius (Real r) |
ContactGeometryTypeId | getTypeId () const |
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 ContactGeometryTypeId | classTypeId () |
static const std::string & | Type () |
SimTK::ContactGeometry::SphereImpl::SphereImpl | ( | Real | radius | ) | [inline] |
ContactGeometryImpl* SimTK::ContactGeometry::SphereImpl::clone | ( | ) | const [inline, virtual] |
Implements SimTK::ContactGeometryImpl.
Real SimTK::ContactGeometry::SphereImpl::getRadius | ( | ) | const [inline] |
void SimTK::ContactGeometry::SphereImpl::setRadius | ( | Real | r | ) | [inline] |
ContactGeometryTypeId SimTK::ContactGeometry::SphereImpl::getTypeId | ( | ) | const [inline, virtual] |
Implements SimTK::ContactGeometryImpl.
static ContactGeometryTypeId SimTK::ContactGeometry::SphereImpl::classTypeId | ( | ) | [inline, static] |
static const std::string& SimTK::ContactGeometry::SphereImpl::Type | ( | ) | [inline, static] |
Vec3 SimTK::ContactGeometry::SphereImpl::findNearestPoint | ( | const Vec3 & | position, |
bool & | inside, | ||
UnitVec3 & | normal | ||
) | const [virtual] |
Implements SimTK::ContactGeometryImpl.
bool SimTK::ContactGeometry::SphereImpl::intersectsRay | ( | const Vec3 & | origin, |
const UnitVec3 & | direction, | ||
Real & | distance, | ||
UnitVec3 & | normal | ||
) | const [virtual] |
Implements SimTK::ContactGeometryImpl.
void SimTK::ContactGeometry::SphereImpl::getBoundingSphere | ( | Vec3 & | center, |
Real & | radius | ||
) | const [virtual] |
Implements SimTK::ContactGeometryImpl.