Capsule volume function.
More...
#include <roboptim/capsule/volume.hh>
Capsule volume function.
This class computes the volume of a capsule defined by a segment and a radius.
roboptim::capsule::Volume::Volume |
( |
std::string |
name = "capsule volume" | ) |
|
throw | ( | |
| ) | | |
roboptim::capsule::Volume::~Volume |
( |
| ) |
|
throw | ( | |
| ) | | |
void roboptim::capsule::Volume::impl_compute |
( |
result_t & |
result, |
|
|
const argument_t & |
argument |
|
) |
| const |
throw | ( | |
| ) | | |
|
protectedvirtual |
Compute the volume of the capsule.
- Parameters
-
argument | vector containing the capsule parameters. It contains in this order: the segment first end point coordinates, the segment second end point coordinates, the capsule radius. |
void roboptim::capsule::Volume::impl_gradient |
( |
gradient_t & |
gradient, |
|
|
const argument_t & |
argument, |
|
|
size_type |
functionId = 0 |
|
) |
| const |
throw | ( | |
| ) | | |
|
protectedvirtual |
Compute gradient of the capsule volume with respect to the argument vector.