RealDocs

UKismetMathLibrary::NotEqualExactly_Vector2DVector2D

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

Description

Returns true if A and B are not bit-exactly equal. The inverse of EqualExactly_Vector2DVector2D — use sparingly for the same reasons.

Caveats & Gotchas

  • Like EqualExactly, this performs a bitwise comparison. Two conceptually equal vectors computed via different paths will almost always be considered not-equal due to floating-point imprecision.
  • For most inequality checks, NotEqual_Vector2DVector2D with a tolerance is the correct choice.

Signature

static UE_INL_API bool NotEqualExactly_Vector2DVector2D(FVector2D A, FVector2D B);

Parameters

Name Type Description Default
A FVector2D The first vector.
B FVector2D The second vector.

Return Type

bool

Example

Detect any change to a cached position C++
FVector2D CachedPos = LastKnownPos;
// ... some logic that may or may not modify LastKnownPos ...
bool bChanged = UKismetMathLibrary::NotEqualExactly_Vector2DVector2D(LastKnownPos, CachedPos);

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.