Felt
3.1
Deformable surface library.
|
#include <GridMixin.hpp>
Inherited by Felt::Impl::Mixin::Grid::Access::ByRef< TDerived > [protected]
, and Felt::Impl::Mixin::Grid::Access::ByValue< TDerived > [protected]
.
Protected Member Functions | |
PosIdx | index (const VecDi &pos_) const |
Get index in data array of position vector. More... | |
VecDi | index (const PosIdx idx_) const |
Get position of index. More... | |
|
inlineprotected |
Get index in data array of position vector.
The grid is packed in a 1D array, so this method is required to get the index in that array of the D-dimensional position.
pos_ | position in grid to query. |
|
inlineprotected |
Get position of index.
Given an index in the 1D grid data array, calculate the position vector that it pertains to.
idx_ | index in internal data array to query. |