GizmoMath::ClosetPointOnCircle

Find the closest point to QueryPoint that is on the circle defined by CircleOrigin, CircleNormal, and CircleRadius.

Choose your operating system:

Windows

macOS

Linux

References

Module

InteractiveToolsFramework

Header

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

Include

#include "BaseGizmos/GizmoMath.h"

Source

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

Syntax

namespace GizmoMath
{
    void GizmoMath::ClosetPointOnCircle
    (
        const FVector & QueryPoint,
        const FVector & CircleOrigin,
        const FVector & CircleNormal,
        float CircleRadius,
        FVector & ClosestPointOut
    )
}

Remarks

Find the closest point to QueryPoint that is on the circle defined by CircleOrigin, CircleNormal, and CircleRadius.