VectorSwizzle

Swizzles the 4 components of a vector and returns the result.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/UnrealMathNeon.h

Include

#include "Math/UnrealMathNeon.h"

Syntax

VectorRegister VectorSwizzle
(
    VectorRegister V,
    uint32 E0,
    uint32 E1,
    uint32 E2,
    uint32 E3
)

Remarks

Swizzles the 4 components of a vector and returns the result.

Returns

The swizzled vector

Parameters

Parameter

Description

Vec

Source vector

X

Index for which component to use for X (literal 0-3)

Y

Index for which component to use for Y (literal 0-3)

Z

Index for which component to use for Z (literal 0-3)

W

Index for which component to use for W (literal 0-3)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss