FNearest

[FNearest](API\Runtime\GeometryCore\Spatial\FGeometrySet3\FNearest) is returned by nearest-point queries

Choose your operating system:

Windows

macOS

Linux

References

Module

GeometryCore

Header

/Engine/Source/Runtime/GeometryCore/Public/Spatial/GeometrySet3.h

Include

#include "Spatial/GeometrySet3.h"

Syntax

struct FNearest

Remarks

FNearest is returned by nearest-point queries

Variables

Name Description

Public variable

bool

 

bIsPoint

True for point, false for polyline curve

Public variable

int

 

ID

ID of point or curve

Public variable

FVector3d

 

NearestGeoPoint

Nearest point on geometry (ie the point, or point on curve)

Public variable

FVector3d

 

NearestRayPoint

Nearest point on ray

Public variable

int

 

PolySegmentIdx

If bIsPoint=false, index of nearest segment on polyline curve

Public variable

double

 

PolySegmentParam

If bIsPoint=false, parameter of NearestGeoPoint along segment defined by PolySegmentIdx

Public variable

double

 

RayParam

Parameter of nearest point on ray (equivalent to NearestRayPoint)