Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/TPolyline3 > API/Runtime/GeometryCore/TPolyline3/DistanceSquared
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/Polyline3.h |
| Include | #include "Polyline3.h" |
T DistanceSquared
(
const TVector < T > & QueryPoint,
int & NearestSegIndexOut,
T & NearestSegParamOut
) const
Remarks
Calculate the squared distance from a point to the polyline squared distance to the polyline
Parameters
| Name | Description |
|---|---|
| QueryPoint | the query point |
| NearestSegIndexOut | The index of the nearest segment |
| NearestSegParamOut | the parameter value of the nearest point on the segment |