RealDocs

UKismetMathLibrary::Vector4_IsNormal3

function Engine Blueprint Since 4.0
#include "Kismet/KismetMathLibrary.h"
Access: public Specifiers: staticBlueprintPure

Description

Returns true if the XYZ components form a unit-length vector, ignoring W. Unlike Vector4_IsUnit3, this uses the vector's own internal IsNormal3 check with a fixed tolerance rather than an adjustable squared-length tolerance.

Caveats & Gotchas

  • The tolerance used internally is fixed and tighter than Vector4_IsUnit3's default; if you need a tunable threshold, use Vector4_IsUnit3 instead.
  • W is ignored entirely — a W of 1000 will not cause this to return false.

Signature

static UE_INL_API bool Vector4_IsNormal3(const FVector4& A);

Parameters

Name Type Description Default
A const FVector4& The vector to test.

Return Type

bool

Example

Conditional normalization C++
FVector4 V = GetDirection4();
if (!UKismetMathLibrary::Vector4_IsNormal3(V))
{
    V = UKismetMathLibrary::Vector4_Normal3(V);
}

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.