UKismetMathLibrary::Multiply_IntPointIntPoint
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticBlueprintPureUFUNCTION
Description
Returns a new FIntPoint with each component multiplied independently (A.X*B.X, A.Y*B.Y). This is a component-wise (Hadamard) product, not a dot product.
Caveats & Gotchas
- • This is component-wise multiplication, not a dot product. If you need a dot product, convert to FVector2D first.
- • Integer overflow is silent. Multiplying two large values can silently wrap; consider clamping inputs or using 64-bit intermediates if inputs may be large.
Signature
static UE_INL_API FIntPoint Multiply_IntPointIntPoint(FIntPoint A, FIntPoint B); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| A | FIntPoint | First IntPoint operand. | — |
| B | FIntPoint | Second IntPoint operand. | — |
Return Type
FIntPoint Example
Scale a tile offset non-uniformly C++
FIntPoint Offset(3, 2);
FIntPoint Scale(4, 5);
FIntPoint Scaled = UKismetMathLibrary::Multiply_IntPointIntPoint(Offset, Scale);
// Scaled == (12, 10) Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?