Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Math > API/Runtime/Core/Math/VectorReplicateImpl
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Math/UnrealMathNeon.h |
| Include | #include "Math/UnrealMathNeon.h" |
template<int ElementIndex>
VectorRegister4Float VectorReplicateImpl
(
const VectorRegister4Float & Vec
)
Remarks
Replicates one element into all four elements and returns the new vector. Must be a #define for ELementIndex to be a constant integer VectorRegister4Float( Vec[ElementIndex], Vec[ElementIndex], Vec[ElementIndex], Vec[ElementIndex] )
Parameters
| Name | Description |
|---|---|
| Vec | Source vector |
| ElementIndex | Index (0-3) of the element to replicate |