GizmoMath::ProjectPointOntoPlane

Project the input Point onto the plane defined by PlaneOrigin and PlaneNormal,

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
{
    FVector GizmoMath::ProjectPointOntoPlane
    (
        const FVector & Point,
        const FVector & PlaneOrigin,
        const FVector & PlaneNormal
    )
}

Remarks

Project the input Point onto the plane defined by PlaneOrigin and PlaneNormal,

Returns

Nearest position to Point lying in the plane