UKismetMathLibrary::NotEqualExactly_Vector4Vector4
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Returns true if any component of A differs bitwise from the corresponding component of B. Logical inverse of EqualExactly_Vector4Vector4.
Caveats & Gotchas
- • Like EqualExactly, this uses exact floating-point comparison. It is not appropriate for detecting 'meaningfully different' vectors that arise from computation — use NotEqual_Vector4Vector4 with a tolerance for that.
- • Two vectors where one component contains NaN will always return true here, because NaN != NaN under IEEE 754.
Signature
static UE_INL_API bool NotEqualExactly_Vector4Vector4(const FVector4& A, const FVector4& B) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| A | const FVector4& | First vector. | — |
| B | const FVector4& | Second vector to compare. | — |
Return Type
bool Example
Guard against accidental aliasing of two cached vectors C++
if (UKismetMathLibrary::NotEqualExactly_Vector4Vector4(CachedDir, NewDir))
{
CachedDir = NewDir;
OnDirectionChanged();
} Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?