Files
UnrealEngineUWP/Engine/Source/Runtime/InteractiveToolsFramework/Private/BaseGizmos/GizmoInterfaces.cpp
michael balzer 2b10993563 Move InteractiveToolsFramework and GeometryFramework out of Experimental
#jira UETOOL-3823
#rb brooke.hubert
#preflight 6109d1e9b4288d0001acb7ef

[CL 17055606 by michael balzer in ue5-main branch]
2021-08-04 13:58:55 -04:00

21 lines
460 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "BaseGizmos/GizmoInterfaces.h"
#include "BaseGizmos/GizmoMath.h"
void IGizmoAxisSource::GetAxisFrame(
FVector& PlaneNormalOut, FVector& PlaneAxis1Out, FVector& PlaneAxis2Out) const
{
PlaneNormalOut = GetDirection();
if (HasTangentVectors())
{
GetTangentVectors(PlaneAxis1Out, PlaneAxis2Out);
}
else
{
GizmoMath::MakeNormalPlaneBasis(PlaneNormalOut, PlaneAxis1Out, PlaneAxis2Out);
}
}