Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Math > API/Runtime/Core/Math/VectorAdd
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Math/UnrealMathFPU.h |
| Include | #include "Math/UnrealMathFPU.h" |
VectorRegister4Float VectorAdd
(
const VectorRegister4Float & Vec1,
const VectorRegister4Float & Vec2
)
Remarks
Adds two vectors (component-wise) and returns the result. VectorRegister( Vec1.x+Vec2.x, Vec1.y+Vec2.y, Vec1.z+Vec2.z, Vec1.w+Vec2.w )
Parameters
| Name | Description |
|---|---|
| Vec1 | 1st vector |
| Vec2 | 2nd vector |