UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
RenderMath.h File Reference
#include "CoreMinimal.h"
#include "PackedNormal.h"

Go to the source code of this file.

Functions

float GetBasisDeterminantSign (const FVector &XAxis, const FVector &YAxis, const FVector &ZAxis)
 
int8 GetBasisDeterminantSignByte (const FPackedNormal &XAxis, const FPackedNormal &YAxis, const FPackedNormal &ZAxis)
 
template<typename VectorType >
FVector GenerateYAxis (const VectorType &XAxis, const VectorType &ZAxis)
 

Function Documentation

◆ GenerateYAxis()

template<typename VectorType >
FVector GenerateYAxis ( const VectorType &  XAxis,
const VectorType &  ZAxis 
)
inline

Given 2 axes of a basis stored as a packed type, regenerates the y-axis tangent vector and scales by z.W

Parameters
XAxis- x axis (tangent)
ZAxis- z axis (normal), the sign of the determinant is stored in ZAxis.W
Returns
y axis (binormal)

◆ GetBasisDeterminantSign()

float GetBasisDeterminantSign ( const FVector XAxis,
const FVector YAxis,
const FVector ZAxis 
)
inline

Constructs a basis matrix for the axis vectors and returns the sign of the determinant

Parameters
XAxis- x axis (tangent)
YAxis- y axis (binormal)
ZAxis- z axis (normal)
Returns
sign of determinant either -1 or +1

◆ GetBasisDeterminantSignByte()

int8 GetBasisDeterminantSignByte ( const FPackedNormal XAxis,
const FPackedNormal YAxis,
const FPackedNormal ZAxis 
)
inline

Constructs a basis matrix for the axis vectors and returns the sign of the determinant

Parameters
XAxis- x axis (tangent)
YAxis- y axis (binormal)
ZAxis- z axis (normal)
Returns
sign of determinant either -127 (-1) or +1 (127)