TPolyline3::DistanceSquared

Calculate the squared distance from a point to the polyline

Windows
MacOS
Linux

References

Module

GeometricObjects

Header

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

Include

#include "Polyline3.h"

Syntax

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

Remarks

Calculate the squared distance from a point to the polyline

Returns

squared distance to the polyline

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