RealDocs

UKismetMathLibrary::Add_IntPointIntPoint

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

Description

Returns a new FIntPoint whose X and Y are the component-wise sums of A and B. The Blueprint operator node displays as '+'.

Caveats & Gotchas

  • Integer overflow is silent — if A.X + B.X exceeds INT_MAX (2,147,483,647) the result wraps. Validate inputs when working with large tile indices.
  • Both components are added independently; this is not a vector magnitude sum.

Signature

static UE_INL_API FIntPoint Add_IntPointIntPoint(FIntPoint A, FIntPoint B);

Parameters

Name Type Description Default
A FIntPoint Left-hand operand.
B FIntPoint Right-hand operand.

Return Type

FIntPoint

Example

Offset a grid position by a direction vector C++
FIntPoint Current(3, 5);
FIntPoint Offset(1, -1);
FIntPoint Next = UKismetMathLibrary::Add_IntPointIntPoint(Current, Offset);
// Next == (4, 4)

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.