FGeometryHelper::FindClosestPointOnLine

Find the point on line segment from LineStart to LineEnd which is closest to Point

Unreal Engine C++ API Reference > Editor > GraphEditor > FGeometryHelper

References

   
Module GraphEditor
Header /Engine/Source/Editor/GraphEditor/Public/ConnectionDrawingPolicy.h
Include #include "ConnectionDrawingPolicy.h"
Source /Engine/Source/Editor/GraphEditor/Private/ConnectionDrawingPolicy.cpp
static FVector2D FindClosestPointOnLine
(
    const FVector2D & LineStart,
    const FVector2D & LineEnd,
    const FVector2D & TestPoint
)

Remarks

Find the point on line segment from LineStart to LineEnd which is closest to Point


Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library