UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::Geometry::TGridSampler< RealType > Class Template Reference

#include <GridSampler.h>

Public Member Functions

 TGridSampler (int32 SizeIn)
 
int32 Num () const
 
UE::Math::TVector2< RealType > Sample (int32 Index) const
 

Detailed Description

template<typename RealType>
class UE::Geometry::TGridSampler< RealType >

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).

Constructor & Destructor Documentation

◆ TGridSampler()

template<typename RealType >
UE::Geometry::TGridSampler< RealType >::TGridSampler ( int32  SizeIn)
inline

Member Function Documentation

◆ Num()

template<typename RealType >
int32 UE::Geometry::TGridSampler< RealType >::Num ( ) const
inline
Returns
total number of grid points.

◆ Sample()

template<typename RealType >
UE::Math::TVector2< RealType > UE::Geometry::TGridSampler< RealType >::Sample ( int32  Index) const
inline
Parameters
Indexlinear point index in range [0,Num()-1]
Returns
grid sample for given linear index

The documentation for this class was generated from the following file: