UKismetMathLibrary::Multiply_Vector2DVector2D
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Performs element-wise multiplication of two 2D vectors, returning {A.X*B.X, A.Y*B.Y}. Useful for non-uniform scaling of UV coordinates or applying separate scale factors per axis.
Caveats & Gotchas
- • This is a Hadamard (component-wise) product, not a dot product or cross product. It has no geometric interpretation analogous to 3D vector multiplication.
- • In Blueprint the node is CommutativeAssociativeBinaryOperator, meaning extra input pins can be added to chain multiplications on a single node.
Signature
static UE_INL_API FVector2D Multiply_Vector2DVector2D(FVector2D A, FVector2D B); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| A | FVector2D | The first vector. | — |
| B | FVector2D | The second vector. | — |
Return Type
FVector2D Example
Scale UV coordinates non-uniformly C++
FVector2D UV(0.5f, 0.25f);
FVector2D Scale(2.f, 4.f);
FVector2D Scaled = UKismetMathLibrary::Multiply_Vector2DVector2D(UV, Scale);
// Scaled = (1.0, 1.0) Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?