TPolygon2::DistanceSquared

Calculate the squared distance from a point to the polygon

Windows
MacOS
Linux

References

Module

GeometricObjects

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/Polygon2.h

Include

#include "Polygon2.h"

Syntax

T DistanceSquared
(
    const FVector2< T > & QueryPoint,
    int & NearestSegIndexOut,
    T & NearestSegParamOut
) const

Remarks

Calculate the squared distance from a point to the polygon

Returns

squared distance to the polygon

Parameters

Parameter

Description

QueryPoint

the query point

NearestSegIndexOut

The index of the nearest segment

NearestSegParamOut

the parameter value of the nearest point on the segment

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