RealDocs

UKismetMathLibrary::Multiply_IntPointInt

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

Description

Multiplies both components of IntPoint A by scalar B, returning a new FIntPoint. The most common way to uniformly scale a grid offset.

Caveats & Gotchas

  • Multiplying by 0 returns (0, 0) regardless of A — a valid result but easy to pass accidentally when B comes from user data.
  • No overflow protection. If A contains large values and B is also large, the product may wrap silently within int32 range.

Signature

static UE_INL_API FIntPoint Multiply_IntPointInt(FIntPoint A, int32 B);

Parameters

Name Type Description Default
A FIntPoint The IntPoint to scale.
B int32 Scalar multiplier applied to both X and Y.

Return Type

FIntPoint

Example

Convert tile index to pixel offset using tile size C++
FIntPoint TileIndex(5, 3);
int32 TileSize = 64;
FIntPoint PixelOffset = UKismetMathLibrary::Multiply_IntPointInt(TileIndex, TileSize);
// PixelOffset == (320, 192)

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.