opensurgsim
|
A generic (size_t index, Vector coordinate) pair. More...
#include <IndexedLocalCoordinate.h>
Public Member Functions | |
IndexedLocalCoordinate () | |
Default constructor with no initialization. | |
IndexedLocalCoordinate (size_t index, const SurgSim::Math::Vector &coordinate) | |
Constructor with initialization. More... | |
bool | isApprox (const IndexedLocalCoordinate &other, double precision=std::numeric_limits< double >::epsilon()) const |
Comparison method 'isApprox'. More... | |
Public Attributes | |
size_t | index |
Numeric index to indicate the entity w.r.t which the barycentricCoordinate is defined. | |
SurgSim::Math::Vector | coordinate |
Coordinates with respect to the entity identified by the index. | |
A generic (size_t index, Vector coordinate) pair.
The coordinate is a dynamic size vector. E.g. This can be used to represent a barycentric coordinate within a simplex (identified by the index).
SurgSim::DataStructures::IndexedLocalCoordinate::IndexedLocalCoordinate | ( | size_t | index, |
const SurgSim::Math::Vector & | coordinate | ||
) |
Constructor with initialization.
index | Numeric index. |
coordinate | Coordinates with respect to the entity identified by the index. |
bool SurgSim::DataStructures::IndexedLocalCoordinate::isApprox | ( | const IndexedLocalCoordinate & | other, |
double | precision = std::numeric_limits<double>::epsilon() |
||
) | const |
Comparison method 'isApprox'.
other | The other IndexedLocalCoordinate to compare it to |
precision | The precision with which to compare |