Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework
Description
Find the nearest point to QueryPoint on the line defined by LineOrigin and LineDirection. Returns this point and the associated line-equation parameter
| Name | GizmoMath::NearestPointOnLine |
| Type | function |
| Header File | /Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseGizmos/GizmoMath.h |
| Include Path | #include "BaseGizmos/GizmoMath.h" |
| Source | /Engine/Source/Runtime/InteractiveToolsFramework/Private/BaseGizmos/GizmoMath.cpp |
namespace GizmoMath
{
void GizmoMath::NearestPointOnLine
(
const FVector & LineOrigin,
const FVector & LineDirection,
const FVector & QueryPoint,
FVector & NearestPointOut,
float & LineParameterOut
)
}