UKismetMathLibrary::Equal_IntPointIntPoint
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticBlueprintPureUFUNCTION
Description
Returns true if both the X and Y components of A and B are equal. The Blueprint node displays as '=='.
Caveats & Gotchas
- • This is an exact integer comparison — there is no tolerance parameter. Unlike floating-point equality checks, no epsilon is needed or available.
- • In C++ you can use the == operator directly on FIntPoint, so this function is mainly useful in Blueprint or scripting contexts.
Signature
static UE_INL_API bool Equal_IntPointIntPoint(FIntPoint A, FIntPoint B); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| A | FIntPoint | Left-hand IntPoint. | — |
| B | FIntPoint | Right-hand IntPoint. | — |
Return Type
bool Example
Check if a unit has reached its target tile C++
FIntPoint UnitTile(4, 6);
FIntPoint TargetTile(4, 6);
if (UKismetMathLibrary::Equal_IntPointIntPoint(UnitTile, TargetTile))
{
// Unit has arrived
} Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?