GizmoMath::NearestPointOnLineToRay

Find the closest pair of points on a 3D line and 3D ray.

Windows
MacOS
Linux

References

Module

InteractiveToolsFramework

Header

/Engine/Source/Runtime/Experimental/InteractiveToolsFramework/Public/BaseGizmos/GizmoMath.h

Include

#include "BaseGizmos/GizmoMath.h"

Source

/Engine/Source/Runtime/Experimental/InteractiveToolsFramework/Private/BaseGizmos/GizmoMath.cpp

Syntax

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
    )
}

Remarks

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss