TShiftGridIndexer2

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

Windows
MacOS
Linux

References

Module

GeometricObjects

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/Util/GridIndexing2.h

Include

#include "Util/GridIndexing2.h"

Syntax

template<typename RealType>
struct TShiftGridIndexer2

Remarks

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

Variables

Name Description

Public variable

RealType

 

CellSize

Real-valued size of an integer grid cell

Public variable

FVector2< RealT...

 

Origin

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

Constructors

Name Description

Public function

TShiftGridIndexer2

(
    const FVector2< RealType >& origin,
    RealType cellSize
)

Functions

Name Description

Public function Const

FVector2< Re...

 

FromGrid

(
    const FVector2i& GridPoint
)

Convert integer grid coordinates to real-valued point

Public function Const

FVector2< Re...

 

FromGrid

(
    const FVector2< RealType >& RealGr...
)

Convert real-valued grid coordinates to real-valued point

Public function Const

FVector2i

 

ToGrid

(
    const FVector2< RealType >& Point
)

Convert real-valued point to integer grid coordinates

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss