Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


shuffle

Returns the result of specified shuffling of the components from two bool2 vectors into a bool value.
Read time 30 minutesLast updated 4 days ago

Definition

shuffle(bool2, bool2, ShuffleComponent)

Returns the result of specified shuffling of the components from two bool2 vectors into a bool value.
public static bool shuffle(bool2 left, bool2 right, math.ShuffleComponent x)

Parameters

left

bool2 to use as the left argument of the shuffle operation.

right

bool2 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting bool.

Returns

Type

Description

boolbool result of the shuffle operation.

shuffle(bool2, bool2, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two bool2 vectors into a bool2 vector.
public static bool2 shuffle(bool2 left, bool2 right, math.ShuffleComponent x, math.ShuffleComponent y)

Parameters

left

bool2 to use as the left argument of the shuffle operation.

right

bool2 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting bool2 x component.

The ShuffleComponent to use when setting the resulting bool2 y component.

Returns

Type

Description

bool2bool2 result of the shuffle operation.

shuffle(bool2, bool2, ShuffleComponent, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two bool2 vectors into a bool3 vector.
public static bool3 shuffle(bool2 left, bool2 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z)

Parameters

left

bool2 to use as the left argument of the shuffle operation.

right

bool2 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting bool3 x component.

The ShuffleComponent to use when setting the resulting bool3 y component.

The ShuffleComponent to use when setting the resulting bool3 z component.

Returns

Type

Description

bool3bool3 result of the shuffle operation.

shuffle(bool2, bool2, ShuffleComponent, ShuffleComponent, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two bool2 vectors into a bool4 vector.
public static bool4 shuffle(bool2 left, bool2 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z, math.ShuffleComponent w)

Parameters

left

bool2 to use as the left argument of the shuffle operation.

right

bool2 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting bool4 x component.

The ShuffleComponent to use when setting the resulting bool4 y component.

The ShuffleComponent to use when setting the resulting bool4 z component.

The ShuffleComponent to use when setting the resulting bool4 w component.

Returns

Type

Description

bool4bool4 result of the shuffle operation.

shuffle(bool3, bool3, ShuffleComponent)

Returns the result of specified shuffling of the components from two bool3 vectors into a bool value.
public static bool shuffle(bool3 left, bool3 right, math.ShuffleComponent x)

Parameters

left

bool3 to use as the left argument of the shuffle operation.

right

bool3 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting bool.

Returns

Type

Description

boolbool result of the shuffle operation.

shuffle(bool3, bool3, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two bool3 vectors into a bool2 vector.
public static bool2 shuffle(bool3 left, bool3 right, math.ShuffleComponent x, math.ShuffleComponent y)

Parameters

left

bool3 to use as the left argument of the shuffle operation.

right

bool3 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting bool2 x component.

The ShuffleComponent to use when setting the resulting bool2 y component.

Returns

Type

Description

bool2bool2 result of the shuffle operation.

shuffle(bool3, bool3, ShuffleComponent, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two bool3 vectors into a bool3 vector.
public static bool3 shuffle(bool3 left, bool3 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z)

Parameters

left

bool3 to use as the left argument of the shuffle operation.

right

bool3 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting bool3 x component.

The ShuffleComponent to use when setting the resulting bool3 y component.

The ShuffleComponent to use when setting the resulting bool3 z component.

Returns

Type

Description

bool3bool3 result of the shuffle operation.

shuffle(bool3, bool3, ShuffleComponent, ShuffleComponent, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two bool3 vectors into a bool4 vector.
public static bool4 shuffle(bool3 left, bool3 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z, math.ShuffleComponent w)

Parameters

left

bool3 to use as the left argument of the shuffle operation.

right

bool3 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting bool4 x component.

The ShuffleComponent to use when setting the resulting bool4 y component.

The ShuffleComponent to use when setting the resulting bool4 z component.

The ShuffleComponent to use when setting the resulting bool4 w component.

Returns

Type

Description

bool4bool4 result of the shuffle operation.

shuffle(bool4, bool4, ShuffleComponent)

Returns the result of specified shuffling of the components from two bool4 vectors into a bool value.
public static bool shuffle(bool4 left, bool4 right, math.ShuffleComponent x)

Parameters

left

bool4 to use as the left argument of the shuffle operation.

right

bool4 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting bool.

Returns

Type

Description

boolbool result of the shuffle operation.

shuffle(bool4, bool4, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two bool4 vectors into a bool2 vector.
public static bool2 shuffle(bool4 left, bool4 right, math.ShuffleComponent x, math.ShuffleComponent y)

Parameters

left

bool4 to use as the left argument of the shuffle operation.

right

bool4 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting bool2 x component.

The ShuffleComponent to use when setting the resulting bool2 y component.

Returns

Type

Description

bool2bool2 result of the shuffle operation.

shuffle(bool4, bool4, ShuffleComponent, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two bool4 vectors into a bool3 vector.
public static bool3 shuffle(bool4 left, bool4 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z)

Parameters

left

bool4 to use as the left argument of the shuffle operation.

right

bool4 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting bool3 x component.

The ShuffleComponent to use when setting the resulting bool3 y component.

The ShuffleComponent to use when setting the resulting bool3 z component.

Returns

Type

Description

bool3bool3 result of the shuffle operation.

shuffle(bool4, bool4, ShuffleComponent, ShuffleComponent, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two bool4 vectors into a bool4 vector.
public static bool4 shuffle(bool4 left, bool4 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z, math.ShuffleComponent w)

Parameters

left

bool4 to use as the left argument of the shuffle operation.

right

bool4 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting bool4 x component.

The ShuffleComponent to use when setting the resulting bool4 y component.

The ShuffleComponent to use when setting the resulting bool4 z component.

The ShuffleComponent to use when setting the resulting bool4 w component.

Returns

Type

Description

bool4bool4 result of the shuffle operation.

shuffle(double2, double2, ShuffleComponent)

Returns the result of specified shuffling of the components from two double2 vectors into a double value.
public static double shuffle(double2 left, double2 right, math.ShuffleComponent x)

Parameters

double2 to use as the left argument of the shuffle operation.

right

double2 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting double.

Returns

Type

Description

doubledouble result of the shuffle operation.

shuffle(double2, double2, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two double2 vectors into a double2 vector.
public static double2 shuffle(double2 left, double2 right, math.ShuffleComponent x, math.ShuffleComponent y)

Parameters

double2 to use as the left argument of the shuffle operation.

right

double2 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting double2 x component.

The ShuffleComponent to use when setting the resulting double2 y component.

Returns

Type

Description

double2double2 result of the shuffle operation.

shuffle(double2, double2, ShuffleComponent, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two double2 vectors into a double3 vector.
public static double3 shuffle(double2 left, double2 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z)

Parameters

double2 to use as the left argument of the shuffle operation.

right

double2 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting double3 x component.

The ShuffleComponent to use when setting the resulting double3 y component.

The ShuffleComponent to use when setting the resulting double3 z component.

Returns

Type

Description

double3double3 result of the shuffle operation.

shuffle(double2, double2, ShuffleComponent, ShuffleComponent, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two double2 vectors into a double4 vector.
public static double4 shuffle(double2 left, double2 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z, math.ShuffleComponent w)

Parameters

double2 to use as the left argument of the shuffle operation.

right

double2 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting double4 x component.

The ShuffleComponent to use when setting the resulting double4 y component.

The ShuffleComponent to use when setting the resulting double4 z component.

The ShuffleComponent to use when setting the resulting double4 w component.

Returns

Type

Description

double4double4 result of the shuffle operation.

shuffle(double3, double3, ShuffleComponent)

Returns the result of specified shuffling of the components from two double3 vectors into a double value.
public static double shuffle(double3 left, double3 right, math.ShuffleComponent x)

Parameters

double3 to use as the left argument of the shuffle operation.

right

double3 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting double.

Returns

Type

Description

doubledouble result of the shuffle operation.

shuffle(double3, double3, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two double3 vectors into a double2 vector.
public static double2 shuffle(double3 left, double3 right, math.ShuffleComponent x, math.ShuffleComponent y)

Parameters

double3 to use as the left argument of the shuffle operation.

right

double3 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting double2 x component.

The ShuffleComponent to use when setting the resulting double2 y component.

Returns

Type

Description

double2double2 result of the shuffle operation.

shuffle(double3, double3, ShuffleComponent, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two double3 vectors into a double3 vector.
public static double3 shuffle(double3 left, double3 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z)

Parameters

double3 to use as the left argument of the shuffle operation.

right

double3 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting double3 x component.

The ShuffleComponent to use when setting the resulting double3 y component.

The ShuffleComponent to use when setting the resulting double3 z component.

Returns

Type

Description

double3double3 result of the shuffle operation.

shuffle(double3, double3, ShuffleComponent, ShuffleComponent, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two double3 vectors into a double4 vector.
public static double4 shuffle(double3 left, double3 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z, math.ShuffleComponent w)

Parameters

double3 to use as the left argument of the shuffle operation.

right

double3 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting double4 x component.

The ShuffleComponent to use when setting the resulting double4 y component.

The ShuffleComponent to use when setting the resulting double4 z component.

The ShuffleComponent to use when setting the resulting double4 w component.

Returns

Type

Description

double4double4 result of the shuffle operation.

shuffle(double4, double4, ShuffleComponent)

Returns the result of specified shuffling of the components from two double4 vectors into a double value.
public static double shuffle(double4 left, double4 right, math.ShuffleComponent x)

Parameters

double4 to use as the left argument of the shuffle operation.

right

double4 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting double.

Returns

Type

Description

doubledouble result of the shuffle operation.

shuffle(double4, double4, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two double4 vectors into a double2 vector.
public static double2 shuffle(double4 left, double4 right, math.ShuffleComponent x, math.ShuffleComponent y)

Parameters

double4 to use as the left argument of the shuffle operation.

right

double4 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting double2 x component.

The ShuffleComponent to use when setting the resulting double2 y component.

Returns

Type

Description

double2double2 result of the shuffle operation.

shuffle(double4, double4, ShuffleComponent, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two double4 vectors into a double3 vector.
public static double3 shuffle(double4 left, double4 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z)

Parameters

double4 to use as the left argument of the shuffle operation.

right

double4 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting double3 x component.

The ShuffleComponent to use when setting the resulting double3 y component.

The ShuffleComponent to use when setting the resulting double3 z component.

Returns

Type

Description

double3double3 result of the shuffle operation.

shuffle(double4, double4, ShuffleComponent, ShuffleComponent, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two double4 vectors into a double4 vector.
public static double4 shuffle(double4 left, double4 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z, math.ShuffleComponent w)

Parameters

double4 to use as the left argument of the shuffle operation.

right

double4 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting double4 x component.

The ShuffleComponent to use when setting the resulting double4 y component.

The ShuffleComponent to use when setting the resulting double4 z component.

The ShuffleComponent to use when setting the resulting double4 w component.

Returns

Type

Description

double4double4 result of the shuffle operation.

shuffle(float2, float2, ShuffleComponent)

Returns the result of specified shuffling of the components from two float2 vectors into a float value.
public static float shuffle(float2 left, float2 right, math.ShuffleComponent x)

Parameters

left

float2 to use as the left argument of the shuffle operation.

right

float2 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting float.

Returns

Type

Description

floatfloat result of the shuffle operation.

shuffle(float2, float2, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two float2 vectors into a float2 vector.
public static float2 shuffle(float2 left, float2 right, math.ShuffleComponent x, math.ShuffleComponent y)

Parameters

left

float2 to use as the left argument of the shuffle operation.

right

float2 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting float2 x component.

The ShuffleComponent to use when setting the resulting float2 y component.

Returns

Type

Description

float2float2 result of the shuffle operation.

shuffle(float2, float2, ShuffleComponent, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two float2 vectors into a float3 vector.
public static float3 shuffle(float2 left, float2 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z)

Parameters

left

float2 to use as the left argument of the shuffle operation.

right

float2 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting float3 x component.

The ShuffleComponent to use when setting the resulting float3 y component.

The ShuffleComponent to use when setting the resulting float3 z component.

Returns

Type

Description

float3float3 result of the shuffle operation.

shuffle(float2, float2, ShuffleComponent, ShuffleComponent, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two float2 vectors into a float4 vector.
public static float4 shuffle(float2 left, float2 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z, math.ShuffleComponent w)

Parameters

left

float2 to use as the left argument of the shuffle operation.

right

float2 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting float4 x component.

The ShuffleComponent to use when setting the resulting float4 y component.

The ShuffleComponent to use when setting the resulting float4 z component.

The ShuffleComponent to use when setting the resulting float4 w component.

Returns

Type

Description

float4float4 result of the shuffle operation.

shuffle(float3, float3, ShuffleComponent)

Returns the result of specified shuffling of the components from two float3 vectors into a float value.
public static float shuffle(float3 left, float3 right, math.ShuffleComponent x)

Parameters

left

float3 to use as the left argument of the shuffle operation.

right

float3 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting float.

Returns

Type

Description

floatfloat result of the shuffle operation.

shuffle(float3, float3, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two float3 vectors into a float2 vector.
public static float2 shuffle(float3 left, float3 right, math.ShuffleComponent x, math.ShuffleComponent y)

Parameters

left

float3 to use as the left argument of the shuffle operation.

right

float3 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting float2 x component.

The ShuffleComponent to use when setting the resulting float2 y component.

Returns

Type

Description

float2float2 result of the shuffle operation.

shuffle(float3, float3, ShuffleComponent, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two float3 vectors into a float3 vector.
public static float3 shuffle(float3 left, float3 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z)

Parameters

left

float3 to use as the left argument of the shuffle operation.

right

float3 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting float3 x component.

The ShuffleComponent to use when setting the resulting float3 y component.

The ShuffleComponent to use when setting the resulting float3 z component.

Returns

Type

Description

float3float3 result of the shuffle operation.

shuffle(float3, float3, ShuffleComponent, ShuffleComponent, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two float3 vectors into a float4 vector.
public static float4 shuffle(float3 left, float3 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z, math.ShuffleComponent w)

Parameters

left

float3 to use as the left argument of the shuffle operation.

right

float3 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting float4 x component.

The ShuffleComponent to use when setting the resulting float4 y component.

The ShuffleComponent to use when setting the resulting float4 z component.

The ShuffleComponent to use when setting the resulting float4 w component.

Returns

Type

Description

float4float4 result of the shuffle operation.

shuffle(float4, float4, ShuffleComponent)

Returns the result of specified shuffling of the components from two float4 vectors into a float value.
public static float shuffle(float4 left, float4 right, math.ShuffleComponent x)

Parameters

left

float4 to use as the left argument of the shuffle operation.

right

float4 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting float.

Returns

Type

Description

floatfloat result of the shuffle operation.

shuffle(float4, float4, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two float4 vectors into a float2 vector.
public static float2 shuffle(float4 left, float4 right, math.ShuffleComponent x, math.ShuffleComponent y)

Parameters

left

float4 to use as the left argument of the shuffle operation.

right

float4 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting float2 x component.

The ShuffleComponent to use when setting the resulting float2 y component.

Returns

Type

Description

float2float2 result of the shuffle operation.

shuffle(float4, float4, ShuffleComponent, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two float4 vectors into a float3 vector.
public static float3 shuffle(float4 left, float4 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z)

Parameters

left

float4 to use as the left argument of the shuffle operation.

right

float4 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting float3 x component.

The ShuffleComponent to use when setting the resulting float3 y component.

The ShuffleComponent to use when setting the resulting float3 z component.

Returns

Type

Description

float3float3 result of the shuffle operation.

shuffle(float4, float4, ShuffleComponent, ShuffleComponent, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two float4 vectors into a float4 vector.
public static float4 shuffle(float4 left, float4 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z, math.ShuffleComponent w)

Parameters

left

float4 to use as the left argument of the shuffle operation.

right

float4 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting float4 x component.

The ShuffleComponent to use when setting the resulting float4 y component.

The ShuffleComponent to use when setting the resulting float4 z component.

The ShuffleComponent to use when setting the resulting float4 w component.

Returns

Type

Description

float4float4 result of the shuffle operation.

shuffle(int2, int2, ShuffleComponent)

Returns the result of specified shuffling of the components from two int2 vectors into an int value.
public static int shuffle(int2 left, int2 right, math.ShuffleComponent x)

Parameters

left

int2 to use as the left argument of the shuffle operation.

right

int2 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting int.

Returns

Type

Description

intint result of the shuffle operation.

shuffle(int2, int2, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two int2 vectors into an int2 vector.
public static int2 shuffle(int2 left, int2 right, math.ShuffleComponent x, math.ShuffleComponent y)

Parameters

left

int2 to use as the left argument of the shuffle operation.

right

int2 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting int2 x component.

The ShuffleComponent to use when setting the resulting int2 y component.

Returns

Type

Description

int2int2 result of the shuffle operation.

shuffle(int2, int2, ShuffleComponent, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two int2 vectors into an int3 vector.
public static int3 shuffle(int2 left, int2 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z)

Parameters

left

int2 to use as the left argument of the shuffle operation.

right

int2 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting int3 x component.

The ShuffleComponent to use when setting the resulting int3 y component.

The ShuffleComponent to use when setting the resulting int3 z component.

Returns

Type

Description

int3int3 result of the shuffle operation.

shuffle(int2, int2, ShuffleComponent, ShuffleComponent, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two int2 vectors into an int4 vector.
public static int4 shuffle(int2 left, int2 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z, math.ShuffleComponent w)

Parameters

left

int2 to use as the left argument of the shuffle operation.

right

int2 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting int4 x component.

The ShuffleComponent to use when setting the resulting int4 y component.

The ShuffleComponent to use when setting the resulting int4 z component.

The ShuffleComponent to use when setting the resulting int4 w component.

Returns

Type

Description

int4int4 result of the shuffle operation.

shuffle(int3, int3, ShuffleComponent)

Returns the result of specified shuffling of the components from two int3 vectors into an int value.
public static int shuffle(int3 left, int3 right, math.ShuffleComponent x)

Parameters

left

int3 to use as the left argument of the shuffle operation.

right

int3 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting int.

Returns

Type

Description

intint result of the shuffle operation.

shuffle(int3, int3, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two int3 vectors into an int2 vector.
public static int2 shuffle(int3 left, int3 right, math.ShuffleComponent x, math.ShuffleComponent y)

Parameters

left

int3 to use as the left argument of the shuffle operation.

right

int3 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting int2 x component.

The ShuffleComponent to use when setting the resulting int2 y component.

Returns

Type

Description

int2int2 result of the shuffle operation.

shuffle(int3, int3, ShuffleComponent, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two int3 vectors into an int3 vector.
public static int3 shuffle(int3 left, int3 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z)

Parameters

left

int3 to use as the left argument of the shuffle operation.

right

int3 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting int3 x component.

The ShuffleComponent to use when setting the resulting int3 y component.

The ShuffleComponent to use when setting the resulting int3 z component.

Returns

Type

Description

int3int3 result of the shuffle operation.

shuffle(int3, int3, ShuffleComponent, ShuffleComponent, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two int3 vectors into an int4 vector.
public static int4 shuffle(int3 left, int3 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z, math.ShuffleComponent w)

Parameters

left

int3 to use as the left argument of the shuffle operation.

right

int3 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting int4 x component.

The ShuffleComponent to use when setting the resulting int4 y component.

The ShuffleComponent to use when setting the resulting int4 z component.

The ShuffleComponent to use when setting the resulting int4 w component.

Returns

Type

Description

int4int4 result of the shuffle operation.

shuffle(int4, int4, ShuffleComponent)

Returns the result of specified shuffling of the components from two int4 vectors into an int value.
public static int shuffle(int4 left, int4 right, math.ShuffleComponent x)

Parameters

left

int4 to use as the left argument of the shuffle operation.

right

int4 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting int.

Returns

Type

Description

intint result of the shuffle operation.

shuffle(int4, int4, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two int4 vectors into an int2 vector.
public static int2 shuffle(int4 left, int4 right, math.ShuffleComponent x, math.ShuffleComponent y)

Parameters

left

int4 to use as the left argument of the shuffle operation.

right

int4 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting int2 x component.

The ShuffleComponent to use when setting the resulting int2 y component.

Returns

Type

Description

int2int2 result of the shuffle operation.

shuffle(int4, int4, ShuffleComponent, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two int4 vectors into an int3 vector.
public static int3 shuffle(int4 left, int4 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z)

Parameters

left

int4 to use as the left argument of the shuffle operation.

right

int4 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting int3 x component.

The ShuffleComponent to use when setting the resulting int3 y component.

The ShuffleComponent to use when setting the resulting int3 z component.

Returns

Type

Description

int3int3 result of the shuffle operation.

shuffle(int4, int4, ShuffleComponent, ShuffleComponent, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two int4 vectors into an int4 vector.
public static int4 shuffle(int4 left, int4 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z, math.ShuffleComponent w)

Parameters

left

int4 to use as the left argument of the shuffle operation.

right

int4 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting int4 x component.

The ShuffleComponent to use when setting the resulting int4 y component.

The ShuffleComponent to use when setting the resulting int4 z component.

The ShuffleComponent to use when setting the resulting int4 w component.

Returns

Type

Description

int4int4 result of the shuffle operation.

shuffle(uint2, uint2, ShuffleComponent)

Returns the result of specified shuffling of the components from two uint2 vectors into a uint value.
public static uint shuffle(uint2 left, uint2 right, math.ShuffleComponent x)

Parameters

left

uint2 to use as the left argument of the shuffle operation.

right

uint2 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting uint.

Returns

Type

Description

uintuint result of the shuffle operation.

shuffle(uint2, uint2, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two uint2 vectors into a uint2 vector.
public static uint2 shuffle(uint2 left, uint2 right, math.ShuffleComponent x, math.ShuffleComponent y)

Parameters

left

uint2 to use as the left argument of the shuffle operation.

right

uint2 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting uint2 x component.

The ShuffleComponent to use when setting the resulting uint2 y component.

Returns

Type

Description

uint2uint2 result of the shuffle operation.

shuffle(uint2, uint2, ShuffleComponent, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two uint2 vectors into a uint3 vector.
public static uint3 shuffle(uint2 left, uint2 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z)

Parameters

left

uint2 to use as the left argument of the shuffle operation.

right

uint2 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting uint3 x component.

The ShuffleComponent to use when setting the resulting uint3 y component.

The ShuffleComponent to use when setting the resulting uint3 z component.

Returns

Type

Description

uint3uint3 result of the shuffle operation.

shuffle(uint2, uint2, ShuffleComponent, ShuffleComponent, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two uint2 vectors into a uint4 vector.
public static uint4 shuffle(uint2 left, uint2 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z, math.ShuffleComponent w)

Parameters

left

uint2 to use as the left argument of the shuffle operation.

right

uint2 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting uint4 x component.

The ShuffleComponent to use when setting the resulting uint4 y component.

The ShuffleComponent to use when setting the resulting uint4 z component.

The ShuffleComponent to use when setting the resulting uint4 w component.

Returns

Type

Description

uint4uint4 result of the shuffle operation.

shuffle(uint3, uint3, ShuffleComponent)

Returns the result of specified shuffling of the components from two uint3 vectors into a uint value.
public static uint shuffle(uint3 left, uint3 right, math.ShuffleComponent x)

Parameters

left

uint3 to use as the left argument of the shuffle operation.

right

uint3 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting uint.

Returns

Type

Description

uintuint result of the shuffle operation.

shuffle(uint3, uint3, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two uint3 vectors into a uint2 vector.
public static uint2 shuffle(uint3 left, uint3 right, math.ShuffleComponent x, math.ShuffleComponent y)

Parameters

left

uint3 to use as the left argument of the shuffle operation.

right

uint3 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting uint2 x component.

The ShuffleComponent to use when setting the resulting uint2 y component.

Returns

Type

Description

uint2uint2 result of the shuffle operation.

shuffle(uint3, uint3, ShuffleComponent, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two uint3 vectors into a uint3 vector.
public static uint3 shuffle(uint3 left, uint3 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z)

Parameters

left

uint3 to use as the left argument of the shuffle operation.

right

uint3 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting uint3 x component.

The ShuffleComponent to use when setting the resulting uint3 y component.

The ShuffleComponent to use when setting the resulting uint3 z component.

Returns

Type

Description

uint3uint3 result of the shuffle operation.

shuffle(uint3, uint3, ShuffleComponent, ShuffleComponent, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two uint3 vectors into a uint4 vector.
public static uint4 shuffle(uint3 left, uint3 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z, math.ShuffleComponent w)

Parameters

left

uint3 to use as the left argument of the shuffle operation.

right

uint3 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting uint4 x component.

The ShuffleComponent to use when setting the resulting uint4 y component.

The ShuffleComponent to use when setting the resulting uint4 z component.

The ShuffleComponent to use when setting the resulting uint4 w component.

Returns

Type

Description

uint4uint4 result of the shuffle operation.

shuffle(uint4, uint4, ShuffleComponent)

Returns the result of specified shuffling of the components from two uint4 vectors into a uint value.
public static uint shuffle(uint4 left, uint4 right, math.ShuffleComponent x)

Parameters

left

uint4 to use as the left argument of the shuffle operation.

right

uint4 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting uint.

Returns

Type

Description

uintuint result of the shuffle operation.

shuffle(uint4, uint4, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two uint4 vectors into a uint2 vector.
public static uint2 shuffle(uint4 left, uint4 right, math.ShuffleComponent x, math.ShuffleComponent y)

Parameters

left

uint4 to use as the left argument of the shuffle operation.

right

uint4 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting uint2 x component.

The ShuffleComponent to use when setting the resulting uint2 y component.

Returns

Type

Description

uint2uint2 result of the shuffle operation.

shuffle(uint4, uint4, ShuffleComponent, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two uint4 vectors into a uint3 vector.
public static uint3 shuffle(uint4 left, uint4 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z)

Parameters

left

uint4 to use as the left argument of the shuffle operation.

right

uint4 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting uint3 x component.

The ShuffleComponent to use when setting the resulting uint3 y component.

The ShuffleComponent to use when setting the resulting uint3 z component.

Returns

Type

Description

uint3uint3 result of the shuffle operation.

shuffle(uint4, uint4, ShuffleComponent, ShuffleComponent, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two uint4 vectors into a uint4 vector.
public static uint4 shuffle(uint4 left, uint4 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z, math.ShuffleComponent w)

Parameters

left

uint4 to use as the left argument of the shuffle operation.

right

uint4 to use as the right argument of the shuffle operation.

The ShuffleComponent to use when setting the resulting uint4 x component.

The ShuffleComponent to use when setting the resulting uint4 y component.

The ShuffleComponent to use when setting the resulting uint4 z component.

The ShuffleComponent to use when setting the resulting uint4 w component.

Returns

Type

Description

uint4uint4 result of the shuffle operation.