You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#jira UETOOL-3823 #rb brooke.hubert #preflight 6109d1e9b4288d0001acb7ef [CL 17055606 by michael balzer in ue5-main branch]
21 lines
460 B
C++
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);
|
|
}
|
|
}
|