Struct MultigridIndexer2
map between "outer" (ie higher-res) grid coordinates and
"blocks" of those coordinates.
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public struct MultigridIndexer2 : IMultigridIndexer2
Constructors
MultigridIndexer2(Vector2i)
Declaration
public MultigridIndexer2(Vector2i blockSize)
Parameters
Type |
Name |
Description |
Vector2i |
blockSize |
|
Fields
BlockShift
Declaration
public Vector2i BlockShift
Field Value
BlockSize
Declaration
public Vector2i BlockSize
Field Value
OuterShift
Declaration
public Vector2i OuterShift
Field Value
Methods
FromBlock(Vector2i)
Declaration
public Vector2i FromBlock(Vector2i block_idx)
Parameters
Type |
Name |
Description |
Vector2i |
block_idx |
|
Returns
ToBlock(Vector2i)
Declaration
public GridLevelIndex2 ToBlock(Vector2i outer_index)
Parameters
Type |
Name |
Description |
Vector2i |
outer_index |
|
Returns
ToBlockIndex(Vector2i)
Declaration
public Vector2i ToBlockIndex(Vector2i outer_index)
Parameters
Type |
Name |
Description |
Vector2i |
outer_index |
|
Returns
ToBlockLocal(Vector2i)
Declaration
public Vector2i ToBlockLocal(Vector2i outer_index)
Parameters
Type |
Name |
Description |
Vector2i |
outer_index |
|
Returns
Implements