#include <Wm4Distance.h>
Public Member Functions | |
virtual Real | Get (Real fTMin, Real fTMax, const TVector &rkVelocity0, const TVector &rkVelocity1) |
virtual Real | Get (Real fT, const TVector &rkVelocity0, const TVector &rkVelocity1)=0 |
virtual Real | Get ()=0 |
const TVector & | GetClosestPoint0 () const |
const TVector & | GetClosestPoint1 () const |
Real | GetContactTime () const |
virtual Real | GetDerivative (Real fT, const TVector &rkVelocity0, const TVector &rkVelocity1) |
virtual Real | GetDerivativeSquared (Real fT, const TVector &rkVelocity0, const TVector &rkVelocity1) |
Real | GetDifferenceStep () const |
virtual Real | GetSquared (Real fTMin, Real fTMax, const TVector &rkVelocity0, const TVector &rkVelocity1) |
virtual Real | GetSquared (Real fT, const TVector &rkVelocity0, const TVector &rkVelocity1)=0 |
virtual Real | GetSquared ()=0 |
bool | HasMultipleClosestPoints0 () const |
bool | HasMultipleClosestPoints1 () const |
void | SetDifferenceStep (Real fDifferenceStep) |
virtual | ~Distance () |
Public Attributes | |
int | MaximumIterations |
Real | ZeroThreshold |
Protected Member Functions | |
Distance () | |
Protected Attributes | |
bool | m_bHasMultipleClosestPoints0 |
bool | m_bHasMultipleClosestPoints1 |
Real | m_fContactTime |
Real | m_fDifferenceStep |
Real | m_fInvTwoDifferenceStep |
TVector | m_kClosestPoint0 |
TVector | m_kClosestPoint1 |
Definition at line 28 of file Wm4Distance.h.
Wm4::Distance< Real, TVector >::~Distance | ( | ) | [inline, virtual] |
Definition at line 36 of file Wm4Distance.cpp.
Wm4::Distance< Real, TVector >::Distance | ( | ) | [inline, protected] |
Definition at line 24 of file Wm4Distance.cpp.
References Wm4::Distance< Real, TVector >::m_bHasMultipleClosestPoints0, Wm4::Distance< Real, TVector >::m_bHasMultipleClosestPoints1, Wm4::Distance< Real, TVector >::m_fContactTime, Wm4::Distance< Real, TVector >::MaximumIterations, Wm4::Distance< Real, TVector >::SetDifferenceStep(), and Wm4::Distance< Real, TVector >::ZeroThreshold.
Real Wm4::Distance< Real, TVector >::Get | ( | Real | fTMin, | |
Real | fTMax, | |||
const TVector & | rkVelocity0, | |||
const TVector & | rkVelocity1 | |||
) | [inline, virtual] |
virtual Real Wm4::Distance< Real, TVector >::Get | ( | Real | fT, | |
const TVector & | rkVelocity0, | |||
const TVector & | rkVelocity1 | |||
) | [pure virtual] |
virtual Real Wm4::Distance< Real, TVector >::Get | ( | ) | [pure virtual] |
Implemented in Wm4::DistLine3Segment3< Real >, Wm4::DistLine3Triangle3< Real >, Wm4::DistSegment3Segment3< Real >, Wm4::DistSegment3Triangle3< Real >, Wm4::DistVector3Plane3< Real >, Wm4::DistVector3Segment3< Real >, and Wm4::DistVector3Triangle3< Real >.
Referenced by Wm4::Distance< Real, TVector >::Get(), Wm4::Distance< Real, TVector >::GetDerivative(), and Wm4::Distance< Real, TVector >::GetDerivativeSquared().
const TVector & Wm4::Distance< Real, TVector >::GetClosestPoint0 | ( | ) | const [inline] |
Definition at line 53 of file Wm4Distance.cpp.
References Wm4::Distance< Real, TVector >::m_kClosestPoint0.
const TVector & Wm4::Distance< Real, TVector >::GetClosestPoint1 | ( | ) | const [inline] |
Definition at line 59 of file Wm4Distance.cpp.
References Wm4::Distance< Real, TVector >::m_kClosestPoint1.
Real Wm4::Distance< Real, TVector >::GetContactTime | ( | ) | const [inline] |
Definition at line 47 of file Wm4Distance.cpp.
References Wm4::Distance< Real, TVector >::m_fContactTime.
Real Wm4::Distance< Real, TVector >::GetDerivative | ( | Real | fT, | |
const TVector & | rkVelocity0, | |||
const TVector & | rkVelocity1 | |||
) | [inline, virtual] |
Definition at line 93 of file Wm4Distance.cpp.
References Wm4::Distance< Real, TVector >::Get(), Wm4::Distance< Real, TVector >::m_fDifferenceStep, and Wm4::Distance< Real, TVector >::m_fInvTwoDifferenceStep.
Referenced by Wm4::Distance< Real, TVector >::Get(), and Wm4::Distance< Real, TVector >::GetDerivativeSquared().
Real Wm4::Distance< Real, TVector >::GetDerivativeSquared | ( | Real | fT, | |
const TVector & | rkVelocity0, | |||
const TVector & | rkVelocity1 | |||
) | [inline, virtual] |
Definition at line 104 of file Wm4Distance.cpp.
References Wm4::Distance< Real, TVector >::Get(), and Wm4::Distance< Real, TVector >::GetDerivative().
Referenced by Wm4::Distance< Real, TVector >::GetSquared().
Real Wm4::Distance< Real, TVector >::GetDifferenceStep | ( | ) | const [inline] |
Definition at line 41 of file Wm4Distance.cpp.
References Wm4::Distance< Real, TVector >::m_fDifferenceStep.
Real Wm4::Distance< Real, TVector >::GetSquared | ( | Real | fTMin, | |
Real | fTMax, | |||
const TVector & | rkVelocity0, | |||
const TVector & | rkVelocity1 | |||
) | [inline, virtual] |
Definition at line 236 of file Wm4Distance.cpp.
References Wm4::Distance< Real, TVector >::GetDerivativeSquared(), Wm4::Distance< Real, TVector >::GetSquared(), Wm4::Distance< Real, TVector >::m_fContactTime, Wm4::Distance< Real, TVector >::MaximumIterations, and Wm4::Distance< Real, TVector >::ZeroThreshold.
virtual Real Wm4::Distance< Real, TVector >::GetSquared | ( | Real | fT, | |
const TVector & | rkVelocity0, | |||
const TVector & | rkVelocity1 | |||
) | [pure virtual] |
virtual Real Wm4::Distance< Real, TVector >::GetSquared | ( | ) | [pure virtual] |
Implemented in Wm4::DistLine3Segment3< Real >, Wm4::DistLine3Triangle3< Real >, Wm4::DistSegment3Segment3< Real >, Wm4::DistSegment3Triangle3< Real >, Wm4::DistVector3Plane3< Real >, Wm4::DistVector3Segment3< Real >, and Wm4::DistVector3Triangle3< Real >.
Referenced by Wm4::Distance< Real, TVector >::GetSquared().
bool Wm4::Distance< Real, TVector >::HasMultipleClosestPoints0 | ( | ) | const [inline] |
Definition at line 65 of file Wm4Distance.cpp.
References Wm4::Distance< Real, TVector >::m_bHasMultipleClosestPoints0.
bool Wm4::Distance< Real, TVector >::HasMultipleClosestPoints1 | ( | ) | const [inline] |
Definition at line 71 of file Wm4Distance.cpp.
References Wm4::Distance< Real, TVector >::m_bHasMultipleClosestPoints1.
void Wm4::Distance< Real, TVector >::SetDifferenceStep | ( | Real | fDifferenceStep | ) | [inline] |
Definition at line 77 of file Wm4Distance.cpp.
References Wm4::Distance< Real, TVector >::m_fDifferenceStep, and Wm4::Distance< Real, TVector >::m_fInvTwoDifferenceStep.
Referenced by Wm4::Distance< Real, TVector >::Distance().
bool Wm4::Distance< Real, TVector >::m_bHasMultipleClosestPoints0 [protected] |
Definition at line 88 of file Wm4Distance.h.
Referenced by Wm4::Distance< Real, TVector >::Distance(), and Wm4::Distance< Real, TVector >::HasMultipleClosestPoints0().
bool Wm4::Distance< Real, TVector >::m_bHasMultipleClosestPoints1 [protected] |
Definition at line 89 of file Wm4Distance.h.
Referenced by Wm4::Distance< Real, TVector >::Distance(), and Wm4::Distance< Real, TVector >::HasMultipleClosestPoints1().
Real Wm4::Distance< Real, TVector >::m_fContactTime [protected] |
Definition at line 85 of file Wm4Distance.h.
Referenced by Wm4::Distance< Real, TVector >::Distance(), Wm4::Distance< Real, TVector >::Get(), Wm4::Distance< Real, TVector >::GetContactTime(), and Wm4::Distance< Real, TVector >::GetSquared().
Real Wm4::Distance< Real, TVector >::m_fDifferenceStep [protected] |
Definition at line 90 of file Wm4Distance.h.
Referenced by Wm4::Distance< Real, TVector >::GetDerivative(), Wm4::Distance< Real, TVector >::GetDifferenceStep(), and Wm4::Distance< Real, TVector >::SetDifferenceStep().
Real Wm4::Distance< Real, TVector >::m_fInvTwoDifferenceStep [protected] |
Definition at line 90 of file Wm4Distance.h.
Referenced by Wm4::Distance< Real, TVector >::GetDerivative(), and Wm4::Distance< Real, TVector >::SetDifferenceStep().
TVector Wm4::Distance< Real, TVector >::m_kClosestPoint0 [protected] |
Definition at line 86 of file Wm4Distance.h.
Referenced by Wm4::Distance< Real, TVector >::GetClosestPoint0().
TVector Wm4::Distance< Real, TVector >::m_kClosestPoint1 [protected] |
Definition at line 87 of file Wm4Distance.h.
Referenced by Wm4::Distance< Real, TVector >::GetClosestPoint1().
int Wm4::Distance< Real, TVector >::MaximumIterations |
Definition at line 62 of file Wm4Distance.h.
Referenced by Wm4::Distance< Real, TVector >::Distance(), Wm4::Distance< Real, TVector >::Get(), and Wm4::Distance< Real, TVector >::GetSquared().
Real Wm4::Distance< Real, TVector >::ZeroThreshold |
Definition at line 63 of file Wm4Distance.h.
Referenced by Wm4::Distance< Real, TVector >::Distance(), Wm4::Distance< Real, TVector >::Get(), and Wm4::Distance< Real, TVector >::GetSquared().