- Main Page
- Classes
- Files
- Directories

- Class List
- Class Hierarchy
- Class Members

# cPotentialFieldForceAlgo Class Reference

cPotentialFieldForceAlgo is an abstract class for algorithms that compute single point force contacts. More...

`#include <CPotentialFieldForceAlgo.h>`

Inheritance diagram for cPotentialFieldForceAlgo:

List of all members.

## Public Member Functions
| cPotentialFieldForceAlgo ()
| Constructor of cPotentialFieldForceAlgo.
virtual | ~cPotentialFieldForceAlgo ()
| Destructor of cPotentialFieldForceAlgo.
virtual void | initialize (cWorld *a_world, const cVector3d &a_initialPos)
| Initialize the algorithm by passing the initial position of the device.
virtual cVector3d | computeForces (const cVector3d &a_nextDevicePos)
| Compute the next force given the updated position of the device.

## Detailed Description

cPotentialFieldForceAlgo is an abstract class for algorithms that compute single point force contacts.

## Member Function Documentation

cVector3d cPotentialFieldForceAlgo::computeForces | ( | const cVector3d & | a_nextDevicePos | ) | `[virtual]`

Compute the next force given the updated position of the device.

Compute forces for all potential field based objects (cGenericPotentialField).

Parameters:

  | a_nextDevicePos | Next position of haptic device or virtual finger.

Reimplemented from cGenericPointForceAlgo.

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

- chai3d/src/forces/CPotentialFieldForceAlgo.h
- chai3d/src/forces/CPotentialFieldForceAlgo.cpp