SphereImpl Class Reference

#include <ContactGeometryImpl.h>

Inheritance diagram for SphereImpl:
ContactGeometryImpl

List of all members.

Public Member Functions

 SphereImpl (Real radius)
ContactGeometryImplclone () 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 &center, Real &radius) const

Static Public Member Functions

static const std::string & Type ()

Constructor & Destructor Documentation

SphereImpl ( Real  radius  )  [inline]

Referenced by SphereImpl::clone().


Member Function Documentation

ContactGeometryImpl* clone (  )  const [inline, virtual]
Vec3 findNearestPoint ( const Vec3 position,
bool &  inside,
UnitVec3 normal 
) const [virtual]

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]

The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2