Interface IMultigridIndexer3
interface that maps between integer grid coords and 'blocks' of those
coordinates, ie for multigrid-like structures
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public interface IMultigridIndexer3
Methods
FromBlock(Vector3i)
Map from block index to outer grid index at min-corner of the block.
(add block-local coord to get specific outer-grid index)
Declaration
Vector3i FromBlock(Vector3i block_idx)
Parameters
Type |
Name |
Description |
Vector3i |
block_idx |
|
Returns
ToBlock(Vector3i)
maps from denser outer-grid indices to pairs of (block_index, local_index_in_block)
this should just be the combined result of [ ToBlockIndex() , ToBlockLocal() ]
Declaration
GridLevelIndex ToBlock(Vector3i outer_index)
Parameters
Type |
Name |
Description |
Vector3i |
outer_index |
|
Returns
ToBlockIndex(Vector3i)
map from outer-grid indices to block index (ie divide)
Declaration
Vector3i ToBlockIndex(Vector3i outer_index)
Parameters
Type |
Name |
Description |
Vector3i |
outer_index |
|
Returns
ToBlockLocal(Vector3i)
map from outer-grid indices to block-local index (ie modulo)
Declaration
Vector3i ToBlockLocal(Vector3i outer_index)
Parameters
Type |
Name |
Description |
Vector3i |
outer_index |
|
Returns