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

#include <GridIndexing2.h>

Public Member Functions

 TShiftGridIndexer2 (const TVector2< RealType > &origin, RealType cellSize)
 
FVector2i ToGrid (const TVector2< RealType > &Point) const
 
FIntRect ToGrid (const TBox2< RealType > &Box) const
 
FIntRect ToGrid (const TBox< RealType > &Box) const
 
TVector2< RealType > FromGrid (const FVector2i &GridPoint) const
 
TVector2< RealType > FromGrid (const TVector2< RealType > &RealGridPoint) const
 
TBox2< RealType > BoxFromGrid (const FVector2i &GridPoint) const
 

Public Attributes

RealType CellSize
 
TVector2< RealType > Origin
 

Detailed Description

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

Convert between integer grid coordinates and scaled+translated real-valued coordinates

Constructor & Destructor Documentation

◆ TShiftGridIndexer2()

template<typename RealType >
UE::Geometry::TShiftGridIndexer2< RealType >::TShiftGridIndexer2 ( const TVector2< RealType > &  origin,
RealType  cellSize 
)
inline

Member Function Documentation

◆ BoxFromGrid()

template<typename RealType >
TBox2< RealType > UE::Geometry::TShiftGridIndexer2< RealType >::BoxFromGrid ( const FVector2i GridPoint) const
inline

Compute the real-valued 2D box of an integer grid coordinates

◆ FromGrid() [1/2]

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

Convert integer grid coordinates to real-valued point

◆ FromGrid() [2/2]

template<typename RealType >
TVector2< RealType > UE::Geometry::TShiftGridIndexer2< RealType >::FromGrid ( const TVector2< RealType > &  RealGridPoint) const
inline

Convert real-valued grid coordinates to real-valued point

◆ ToGrid() [1/3]

template<typename RealType >
FIntRect UE::Geometry::TShiftGridIndexer2< RealType >::ToGrid ( const TBox2< RealType > &  Box) const
inline

Convert real-valued 2D box to a rectangle using integer grid coordinates

◆ ToGrid() [2/3]

template<typename RealType >
FIntRect UE::Geometry::TShiftGridIndexer2< RealType >::ToGrid ( const TBox< RealType > &  Box) const
inline

Convert real-valued 3D box to a rectangle using integer grid coordinates

◆ ToGrid() [3/3]

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

Convert real-valued point to integer grid coordinates

Member Data Documentation

◆ CellSize

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

Real-valued size of an integer grid cell

◆ Origin

template<typename RealType >
TVector2<RealType> UE::Geometry::TShiftGridIndexer2< RealType >::Origin

Real-valued origin of grid, position of integer grid origin


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