Struct ShiftGridIndexer2
Map to/from grid coords, where grid is translated from origin
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public struct ShiftGridIndexer2 : IGridWorldIndexer2
Constructors
ShiftGridIndexer2(Vector2d, Double)
Declaration
public ShiftGridIndexer2(Vector2d origin, double cellSize)
Parameters
Fields
CellSize
Declaration
Field Value
Origin
Declaration
Field Value
Methods
FromGrid(Vector2d)
Declaration
public Vector2d FromGrid(Vector2d gridpointf)
Parameters
Type |
Name |
Description |
Vector2d |
gridpointf |
|
Returns
FromGrid(Vector2i)
Declaration
public Vector2d FromGrid(Vector2i gridpoint)
Parameters
Type |
Name |
Description |
Vector2i |
gridpoint |
|
Returns
ToGrid(Vector2d)
Declaration
public Vector2i ToGrid(Vector2d point)
Parameters
Returns
Implements