Vector2.Shuffle(Vector2, Byte, Byte) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new vector by selecting values from an input vector using a set of indices.
public:
static System::Numerics::Vector2 Shuffle(System::Numerics::Vector2 vector, System::Byte xIndex, System::Byte yIndex);
public static System.Numerics.Vector2 Shuffle(System.Numerics.Vector2 vector, byte xIndex, byte yIndex);
static member Shuffle : System.Numerics.Vector2 * byte * byte -> System.Numerics.Vector2
Public Shared Function Shuffle (vector As Vector2, xIndex As Byte, yIndex As Byte) As Vector2
Parameters
- vector
- Vector2
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.
Returns
A new vector containing the values from vector
selected by the given indices.