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

#include <GridIndexing2.h>

Public Member Functions

 TScaleGridIndexer2 ()
 
 TScaleGridIndexer2 (RealType CellSize)
 
FVector2i ToGrid (const TVector2< RealType > &P) const
 
TVector2< RealType > FromGrid (const FVector2i &GridPoint) const
 

Public Attributes

RealType CellSize
 

Detailed Description

template<typename RealType>
struct UE::Geometry::TScaleGridIndexer2< RealType >

Convert between integer grid coordinates and scaled real-valued coordinates (ie assumes integer grid origin == real origin)

Constructor & Destructor Documentation

◆ TScaleGridIndexer2() [1/2]

template<typename RealType >
UE::Geometry::TScaleGridIndexer2< RealType >::TScaleGridIndexer2 ( )
inline

◆ TScaleGridIndexer2() [2/2]

template<typename RealType >
UE::Geometry::TScaleGridIndexer2< RealType >::TScaleGridIndexer2 ( RealType  CellSize)
inline

Member Function Documentation

◆ FromGrid()

template<typename RealType >
TVector2< RealType > UE::Geometry::TScaleGridIndexer2< RealType >::FromGrid ( const FVector2i GridPoint) const
inline

Convert integer grid coordinates to real-valued point

◆ ToGrid()

template<typename RealType >
FVector2i UE::Geometry::TScaleGridIndexer2< RealType >::ToGrid ( const TVector2< RealType > &  P) const
inline

Convert real-valued point to integer grid coordinates

Member Data Documentation

◆ CellSize

template<typename RealType >
RealType UE::Geometry::TScaleGridIndexer2< RealType >::CellSize

Real-valued size of an integer grid cell


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