engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
TSimpleCellGrid< CellType, InvalidCellValue > 模板结构体 参考

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
 

详细描述

template<typename CellType, int InvalidCellValue = 0>
struct TSimpleCellGrid< CellType, InvalidCellValue >

No virtuals on purpose


该结构体的文档由以下文件生成: