TScaleGridIndexer2

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

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 TScaleGridIndexer2

Remarks

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

Variables

Name Description

Public variable

RealType

 

CellSize

Real-valued size of an integer grid cell

Constructors

Name Description

Public function

TScaleGridIndexer2

(
    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

FVector2i

 

ToGrid

(
    const FVector2< RealType >& P
)

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