Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/Spatial
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/Spatial/DenseGrid2.h |
| Include | #include "Spatial/DenseGrid2.h" |
Syntax
template<typename ElemType>
class TDenseGrid2
Remarks
2D dense grid of scalar values.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray64< ElemType > | Buffer | Grid of allocated elements | |
| int64 | DimensionX | Dimensions per axis | |
| int64 | DimensionY |
Constructors
| Type | Name | Description | |
|---|---|---|---|
TDenseGrid2 () |
Create empty grid | ||
TDenseGrid2
(
int32 DimX, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Apply
(
TFunctionRef< ElemType(ElemType)> ApplyFunc |
||
| void | AssignAll
(
ElemType Value |
||
| constexpr const ElemType & | At
(
int64 X, |
||
| constexpr ElemType & | At
(
int64 X, |
||
| constexpr const ElemType & | At
(
int32 X, |
||
| constexpr ElemType & | At
(
int32 X, |
||
| FAxisAlignedBox2i | Bounds () |
||
| FAxisAlignedBox2i | |||
| FVector2i | GetCoords
(
int64 LinearIndex |
||
| FVector2i | |||
| int64 | GetIndex
(
int32 X, |
||
| int64 | |||
| void | GetXPair
(
int32 X0, |
||
| TArray64< ElemType > & | GridValues () |
||
| const TArray64< ElemType > & | GridValues () |
||
| int64 | Height () |
||
| void | Resize
(
int32 DimX, |
||
| void | |||
| void | |||
| int64 | Size () |
||
| int64 | Width () |
Operators
| Type | Name | Description | |
|---|---|---|---|
| constexpr ElemType & | operator[]
(
int64 Idx |
||
| constexpr const ElemType & | operator[]
(
int64 Idx |
||
| constexpr ElemType & | operator[]
(
FVector2i Idx |
||
| constexpr const ElemType & | operator[]
(
FVector2i Idx |