Edit

Share via


Vector4.Shuffle(Vector4, Byte, Byte, Byte, Byte) Method

Definition

Creates a new vector by selecting values from an input vector using a set of indices.

public:
 static System::Numerics::Vector4 Shuffle(System::Numerics::Vector4 vector, System::Byte xIndex, System::Byte yIndex, System::Byte zIndex, System::Byte wIndex);
public static System.Numerics.Vector4 Shuffle(System.Numerics.Vector4 vector, byte xIndex, byte yIndex, byte zIndex, byte wIndex);
static member Shuffle : System.Numerics.Vector4 * byte * byte * byte * byte -> System.Numerics.Vector4
Public Shared Function Shuffle (vector As Vector4, xIndex As Byte, yIndex As Byte, zIndex As Byte, wIndex As Byte) As Vector4

Parameters

vector
Vector4

The input vector from which values are selected.

xIndex
Byte

The index used to select a value from vector to be used as the value of X in the result.

yIndex
Byte

The index used to select a value from vector to be used as the value of Y in the result

zIndex
Byte

The index used to select a value from vector to be used as the value of Z in the result

wIndex
Byte

The index used to select a value from vector to be used as the value of W in the result

Returns

A new vector containing the values from vector selected by the given indices.

Applies to