FVector::CreateOrthonormalBasis

Create an orthonormal basis from a basis with at least two orthogonal vectors.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/Vector.h

Include

#include "Math/Vector.h"

Source

/Engine/Source/Runtime/Core/Private/Math/UnrealMath.cpp

Syntax

static void CreateOrthonormalBasis
(
    FVector & XAxis,
    FVector & YAxis,
    FVector & ZAxis
)

Remarks

Create an orthonormal basis from a basis with at least two orthogonal vectors. It may change the directions of the X and Y axes to make the basis orthogonal, but it won't change the direction of the Z axis. All axes will be normalized.

Parameters

Parameter

Description

XAxis

The input basis' XAxis, and upon return the orthonormal basis' XAxis.

YAxis

The input basis' YAxis, and upon return the orthonormal basis' YAxis.

ZAxis

The input basis' ZAxis, and upon return the orthonormal basis' ZAxis.

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