docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method shuffle

    shuffle(bool2, bool2, ShuffleComponent)

    Returns the result of specified shuffling of the components from two bool2 vectors into a bool value.

    Declaration
    public static bool shuffle(bool2 left, bool2 right, math.ShuffleComponent x)
    Parameters
    Type Name Description
    bool2 left

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

    bool2 right

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

    math.ShuffleComponent x

    The ShuffleComponent to use when setting the resulting bool.

    Returns
    Type Description
    bool

    bool 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.

    Declaration
    public static bool2 shuffle(bool2 left, bool2 right, math.ShuffleComponent x, math.ShuffleComponent y)
    Parameters
    Type Name Description
    bool2 left

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

    bool2 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    Returns
    Type Description
    bool2

    bool2 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.

    Declaration
    public static bool3 shuffle(bool2 left, bool2 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z)
    Parameters
    Type Name Description
    bool2 left

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

    bool2 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    math.ShuffleComponent z

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

    Returns
    Type Description
    bool3

    bool3 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.

    Declaration
    public static bool4 shuffle(bool2 left, bool2 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z, math.ShuffleComponent w)
    Parameters
    Type Name Description
    bool2 left

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

    bool2 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    math.ShuffleComponent z

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

    math.ShuffleComponent w

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

    Returns
    Type Description
    bool4

    bool4 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.

    Declaration
    public static bool shuffle(bool3 left, bool3 right, math.ShuffleComponent x)
    Parameters
    Type Name Description
    bool3 left

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

    bool3 right

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

    math.ShuffleComponent x

    The ShuffleComponent to use when setting the resulting bool.

    Returns
    Type Description
    bool

    bool 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.

    Declaration
    public static bool2 shuffle(bool3 left, bool3 right, math.ShuffleComponent x, math.ShuffleComponent y)
    Parameters
    Type Name Description
    bool3 left

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

    bool3 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    Returns
    Type Description
    bool2

    bool2 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.

    Declaration
    public static bool3 shuffle(bool3 left, bool3 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z)
    Parameters
    Type Name Description
    bool3 left

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

    bool3 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    math.ShuffleComponent z

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

    Returns
    Type Description
    bool3

    bool3 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.

    Declaration
    public static bool4 shuffle(bool3 left, bool3 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z, math.ShuffleComponent w)
    Parameters
    Type Name Description
    bool3 left

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

    bool3 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    math.ShuffleComponent z

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

    math.ShuffleComponent w

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

    Returns
    Type Description
    bool4

    bool4 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.

    Declaration
    public static bool shuffle(bool4 left, bool4 right, math.ShuffleComponent x)
    Parameters
    Type Name Description
    bool4 left

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

    bool4 right

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

    math.ShuffleComponent x

    The ShuffleComponent to use when setting the resulting bool.

    Returns
    Type Description
    bool

    bool 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.

    Declaration
    public static bool2 shuffle(bool4 left, bool4 right, math.ShuffleComponent x, math.ShuffleComponent y)
    Parameters
    Type Name Description
    bool4 left

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

    bool4 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    Returns
    Type Description
    bool2

    bool2 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.

    Declaration
    public static bool3 shuffle(bool4 left, bool4 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z)
    Parameters
    Type Name Description
    bool4 left

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

    bool4 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    math.ShuffleComponent z

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

    Returns
    Type Description
    bool3

    bool3 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.

    Declaration
    public static bool4 shuffle(bool4 left, bool4 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z, math.ShuffleComponent w)
    Parameters
    Type Name Description
    bool4 left

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

    bool4 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    math.ShuffleComponent z

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

    math.ShuffleComponent w

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

    Returns
    Type Description
    bool4

    bool4 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.

    Declaration
    public static double shuffle(double2 left, double2 right, math.ShuffleComponent x)
    Parameters
    Type Name Description
    double2 left

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

    double2 right

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

    math.ShuffleComponent x

    The ShuffleComponent to use when setting the resulting double.

    Returns
    Type Description
    double

    double 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.

    Declaration
    public static double2 shuffle(double2 left, double2 right, math.ShuffleComponent x, math.ShuffleComponent y)
    Parameters
    Type Name Description
    double2 left

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

    double2 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    Returns
    Type Description
    double2

    double2 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.

    Declaration
    public static double3 shuffle(double2 left, double2 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z)
    Parameters
    Type Name Description
    double2 left

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

    double2 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    math.ShuffleComponent z

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

    Returns
    Type Description
    double3

    double3 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.

    Declaration
    public static double4 shuffle(double2 left, double2 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z, math.ShuffleComponent w)
    Parameters
    Type Name Description
    double2 left

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

    double2 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    math.ShuffleComponent z

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

    math.ShuffleComponent w

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

    Returns
    Type Description
    double4

    double4 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.

    Declaration
    public static double shuffle(double3 left, double3 right, math.ShuffleComponent x)
    Parameters
    Type Name Description
    double3 left

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

    double3 right

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

    math.ShuffleComponent x

    The ShuffleComponent to use when setting the resulting double.

    Returns
    Type Description
    double

    double 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.

    Declaration
    public static double2 shuffle(double3 left, double3 right, math.ShuffleComponent x, math.ShuffleComponent y)
    Parameters
    Type Name Description
    double3 left

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

    double3 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    Returns
    Type Description
    double2

    double2 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.

    Declaration
    public static double3 shuffle(double3 left, double3 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z)
    Parameters
    Type Name Description
    double3 left

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

    double3 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    math.ShuffleComponent z

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

    Returns
    Type Description
    double3

    double3 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.

    Declaration
    public static double4 shuffle(double3 left, double3 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z, math.ShuffleComponent w)
    Parameters
    Type Name Description
    double3 left

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

    double3 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    math.ShuffleComponent z

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

    math.ShuffleComponent w

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

    Returns
    Type Description
    double4

    double4 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.

    Declaration
    public static double shuffle(double4 left, double4 right, math.ShuffleComponent x)
    Parameters
    Type Name Description
    double4 left

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

    double4 right

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

    math.ShuffleComponent x

    The ShuffleComponent to use when setting the resulting double.

    Returns
    Type Description
    double

    double 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.

    Declaration
    public static double2 shuffle(double4 left, double4 right, math.ShuffleComponent x, math.ShuffleComponent y)
    Parameters
    Type Name Description
    double4 left

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

    double4 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    Returns
    Type Description
    double2

    double2 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.

    Declaration
    public static double3 shuffle(double4 left, double4 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z)
    Parameters
    Type Name Description
    double4 left

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

    double4 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    math.ShuffleComponent z

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

    Returns
    Type Description
    double3

    double3 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.

    Declaration
    public static double4 shuffle(double4 left, double4 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z, math.ShuffleComponent w)
    Parameters
    Type Name Description
    double4 left

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

    double4 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    math.ShuffleComponent z

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

    math.ShuffleComponent w

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

    Returns
    Type Description
    double4

    double4 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.

    Declaration
    public static float shuffle(float2 left, float2 right, math.ShuffleComponent x)
    Parameters
    Type Name Description
    float2 left

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

    float2 right

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

    math.ShuffleComponent x

    The ShuffleComponent to use when setting the resulting float.

    Returns
    Type Description
    float

    float 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.

    Declaration
    public static float2 shuffle(float2 left, float2 right, math.ShuffleComponent x, math.ShuffleComponent y)
    Parameters
    Type Name Description
    float2 left

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

    float2 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    Returns
    Type Description
    float2

    float2 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.

    Declaration
    public static float3 shuffle(float2 left, float2 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z)
    Parameters
    Type Name Description
    float2 left

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

    float2 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    math.ShuffleComponent z

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

    Returns
    Type Description
    float3

    float3 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.

    Declaration
    public static float4 shuffle(float2 left, float2 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z, math.ShuffleComponent w)
    Parameters
    Type Name Description
    float2 left

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

    float2 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    math.ShuffleComponent z

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

    math.ShuffleComponent w

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

    Returns
    Type Description
    float4

    float4 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.

    Declaration
    public static float shuffle(float3 left, float3 right, math.ShuffleComponent x)
    Parameters
    Type Name Description
    float3 left

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

    float3 right

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

    math.ShuffleComponent x

    The ShuffleComponent to use when setting the resulting float.

    Returns
    Type Description
    float

    float 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.

    Declaration
    public static float2 shuffle(float3 left, float3 right, math.ShuffleComponent x, math.ShuffleComponent y)
    Parameters
    Type Name Description
    float3 left

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

    float3 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    Returns
    Type Description
    float2

    float2 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.

    Declaration
    public static float3 shuffle(float3 left, float3 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z)
    Parameters
    Type Name Description
    float3 left

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

    float3 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    math.ShuffleComponent z

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

    Returns
    Type Description
    float3

    float3 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.

    Declaration
    public static float4 shuffle(float3 left, float3 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z, math.ShuffleComponent w)
    Parameters
    Type Name Description
    float3 left

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

    float3 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    math.ShuffleComponent z

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

    math.ShuffleComponent w

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

    Returns
    Type Description
    float4

    float4 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.

    Declaration
    public static float shuffle(float4 left, float4 right, math.ShuffleComponent x)
    Parameters
    Type Name Description
    float4 left

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

    float4 right

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

    math.ShuffleComponent x

    The ShuffleComponent to use when setting the resulting float.

    Returns
    Type Description
    float

    float 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.

    Declaration
    public static float2 shuffle(float4 left, float4 right, math.ShuffleComponent x, math.ShuffleComponent y)
    Parameters
    Type Name Description
    float4 left

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

    float4 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    Returns
    Type Description
    float2

    float2 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.

    Declaration
    public static float3 shuffle(float4 left, float4 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z)
    Parameters
    Type Name Description
    float4 left

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

    float4 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    math.ShuffleComponent z

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

    Returns
    Type Description
    float3

    float3 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.

    Declaration
    public static float4 shuffle(float4 left, float4 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z, math.ShuffleComponent w)
    Parameters
    Type Name Description
    float4 left

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

    float4 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    math.ShuffleComponent z

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

    math.ShuffleComponent w

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

    Returns
    Type Description
    float4

    float4 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.

    Declaration
    public static int shuffle(int2 left, int2 right, math.ShuffleComponent x)
    Parameters
    Type Name Description
    int2 left

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

    int2 right

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

    math.ShuffleComponent x

    The ShuffleComponent to use when setting the resulting int.

    Returns
    Type Description
    int

    int 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.

    Declaration
    public static int2 shuffle(int2 left, int2 right, math.ShuffleComponent x, math.ShuffleComponent y)
    Parameters
    Type Name Description
    int2 left

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

    int2 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    Returns
    Type Description
    int2

    int2 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.

    Declaration
    public static int3 shuffle(int2 left, int2 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z)
    Parameters
    Type Name Description
    int2 left

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

    int2 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    math.ShuffleComponent z

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

    Returns
    Type Description
    int3

    int3 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.

    Declaration
    public static int4 shuffle(int2 left, int2 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z, math.ShuffleComponent w)
    Parameters
    Type Name Description
    int2 left

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

    int2 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    math.ShuffleComponent z

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

    math.ShuffleComponent w

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

    Returns
    Type Description
    int4

    int4 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.

    Declaration
    public static int shuffle(int3 left, int3 right, math.ShuffleComponent x)
    Parameters
    Type Name Description
    int3 left

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

    int3 right

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

    math.ShuffleComponent x

    The ShuffleComponent to use when setting the resulting int.

    Returns
    Type Description
    int

    int 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.

    Declaration
    public static int2 shuffle(int3 left, int3 right, math.ShuffleComponent x, math.ShuffleComponent y)
    Parameters
    Type Name Description
    int3 left

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

    int3 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    Returns
    Type Description
    int2

    int2 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.

    Declaration
    public static int3 shuffle(int3 left, int3 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z)
    Parameters
    Type Name Description
    int3 left

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

    int3 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    math.ShuffleComponent z

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

    Returns
    Type Description
    int3

    int3 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.

    Declaration
    public static int4 shuffle(int3 left, int3 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z, math.ShuffleComponent w)
    Parameters
    Type Name Description
    int3 left

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

    int3 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    math.ShuffleComponent z

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

    math.ShuffleComponent w

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

    Returns
    Type Description
    int4

    int4 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.

    Declaration
    public static int shuffle(int4 left, int4 right, math.ShuffleComponent x)
    Parameters
    Type Name Description
    int4 left

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

    int4 right

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

    math.ShuffleComponent x

    The ShuffleComponent to use when setting the resulting int.

    Returns
    Type Description
    int

    int 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.

    Declaration
    public static int2 shuffle(int4 left, int4 right, math.ShuffleComponent x, math.ShuffleComponent y)
    Parameters
    Type Name Description
    int4 left

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

    int4 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    Returns
    Type Description
    int2

    int2 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.

    Declaration
    public static int3 shuffle(int4 left, int4 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z)
    Parameters
    Type Name Description
    int4 left

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

    int4 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    math.ShuffleComponent z

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

    Returns
    Type Description
    int3

    int3 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.

    Declaration
    public static int4 shuffle(int4 left, int4 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z, math.ShuffleComponent w)
    Parameters
    Type Name Description
    int4 left

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

    int4 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    math.ShuffleComponent z

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

    math.ShuffleComponent w

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

    Returns
    Type Description
    int4

    int4 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.

    Declaration
    public static uint shuffle(uint2 left, uint2 right, math.ShuffleComponent x)
    Parameters
    Type Name Description
    uint2 left

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

    uint2 right

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

    math.ShuffleComponent x

    The ShuffleComponent to use when setting the resulting uint.

    Returns
    Type Description
    uint

    uint 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.

    Declaration
    public static uint2 shuffle(uint2 left, uint2 right, math.ShuffleComponent x, math.ShuffleComponent y)
    Parameters
    Type Name Description
    uint2 left

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

    uint2 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    Returns
    Type Description
    uint2

    uint2 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.

    Declaration
    public static uint3 shuffle(uint2 left, uint2 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z)
    Parameters
    Type Name Description
    uint2 left

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

    uint2 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    math.ShuffleComponent z

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

    Returns
    Type Description
    uint3

    uint3 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.

    Declaration
    public static uint4 shuffle(uint2 left, uint2 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z, math.ShuffleComponent w)
    Parameters
    Type Name Description
    uint2 left

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

    uint2 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    math.ShuffleComponent z

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

    math.ShuffleComponent w

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

    Returns
    Type Description
    uint4

    uint4 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.

    Declaration
    public static uint shuffle(uint3 left, uint3 right, math.ShuffleComponent x)
    Parameters
    Type Name Description
    uint3 left

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

    uint3 right

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

    math.ShuffleComponent x

    The ShuffleComponent to use when setting the resulting uint.

    Returns
    Type Description
    uint

    uint 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.

    Declaration
    public static uint2 shuffle(uint3 left, uint3 right, math.ShuffleComponent x, math.ShuffleComponent y)
    Parameters
    Type Name Description
    uint3 left

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

    uint3 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    Returns
    Type Description
    uint2

    uint2 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.

    Declaration
    public static uint3 shuffle(uint3 left, uint3 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z)
    Parameters
    Type Name Description
    uint3 left

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

    uint3 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    math.ShuffleComponent z

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

    Returns
    Type Description
    uint3

    uint3 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.

    Declaration
    public static uint4 shuffle(uint3 left, uint3 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z, math.ShuffleComponent w)
    Parameters
    Type Name Description
    uint3 left

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

    uint3 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    math.ShuffleComponent z

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

    math.ShuffleComponent w

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

    Returns
    Type Description
    uint4

    uint4 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.

    Declaration
    public static uint shuffle(uint4 left, uint4 right, math.ShuffleComponent x)
    Parameters
    Type Name Description
    uint4 left

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

    uint4 right

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

    math.ShuffleComponent x

    The ShuffleComponent to use when setting the resulting uint.

    Returns
    Type Description
    uint

    uint 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.

    Declaration
    public static uint2 shuffle(uint4 left, uint4 right, math.ShuffleComponent x, math.ShuffleComponent y)
    Parameters
    Type Name Description
    uint4 left

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

    uint4 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    Returns
    Type Description
    uint2

    uint2 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.

    Declaration
    public static uint3 shuffle(uint4 left, uint4 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z)
    Parameters
    Type Name Description
    uint4 left

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

    uint4 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    math.ShuffleComponent z

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

    Returns
    Type Description
    uint3

    uint3 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.

    Declaration
    public static uint4 shuffle(uint4 left, uint4 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z, math.ShuffleComponent w)
    Parameters
    Type Name Description
    uint4 left

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

    uint4 right

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

    math.ShuffleComponent x

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

    math.ShuffleComponent y

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

    math.ShuffleComponent z

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

    math.ShuffleComponent w

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

    Returns
    Type Description
    uint4

    uint4 result of the shuffle operation.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)