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
) 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

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