No virtuals on purpose 更多...
#include <SimpleCellGrid.h>
Public 成员函数 | |
| FIntVector | GetCellCoords (const FVector &WorldLocation) const |
| Convert world location to (X,Y) coords on grid, result is clamped to grid | |
| FORCEINLINE FIntVector | GetCellCoords (int32 CellIndex) const |
| Convert cell index to (X,Y) coords on grid | |
| FORCEINLINE FIntVector | GetCellCoordsUnsafe (const FVector &WorldLocation) const |
| Convert world location to (X,Y) coords on grid, result can be outside grid | |
| FORCEINLINE int32 | GetCellCoordX (int32 CellIndex) const |
| Convert cell index to coord X on grid, result can be invalid | |
| FORCEINLINE int32 | GetCellCoordY (int32 CellIndex) const |
| Convert cell index to coord Y on grid, result can be invalid | |
| int32 | GetCellIndex (const FVector &WorldLocation) const |
| Convert world location to cell index, returns -1 for position outside grid | |
| FORCEINLINE int32 | GetCellIndex (int32 LocationX, int32 LocationY) const |
| Convert (X,Y) coords on grid to cell index, returns -1 for position outside grid | |
| FORCEINLINE int32 | GetCellIndexUnsafe (const FIntVector &CellCoords) const |
| Convert (X,Y) coords on grid to cell index, result can be invalid | |
| int32 | GetCellIndexUnsafe (const FVector &WorldLocation) const |
| Convert world location to cell index, result can be invalid | |
| FORCEINLINE int32 | GetCellIndexUnsafe (int32 LocationX, int32 LocationY) const |
| Convert (X,Y) coords on grid to cell index, result can be invalid | |
No virtuals on purpose