Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework
Description
Find the closest pair of points on a 3D line and 3D ray. Returns the points and line-equation parameters on both the line and ray.
| Name | GizmoMath::NearestPointOnLineToRay |
| 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::NearestPointOnLineToRay
(
const FVector & LineOrigin,
const FVector & LineDirection,
const FVector & RayOrigin,
const FVector & RayDirection,
FVector & NearestLinePointOut,
float & LineParameterOut,
FVector & NearestRayPointOut,
float & RayParameterOut
)
}