Navigation
API > API/Runtime > API/Runtime/GeometryCore
Given a linear index into a square grid of given size, gives back the [0,1) XY coordinate of the grid cell center (assuming linear index increases first in X and then in Y).
| Name | TGridSampler |
| Type | class |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Sampling/GridSampler.h |
| Include Path | #include "Sampling/GridSampler.h" |
Syntax
template<typename RealType>
class TGridSampler
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TGridSampler
(
int32 SizeIn |
Sampling/GridSampler.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Size | int32 | Sampling/GridSampler.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 Num() |
Sampling/GridSampler.h | ||
UE::Math::TVector2< RealType > Sample
(
int32 Index |
Sampling/GridSampler.h |