docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method min

    min(int, int)

    Returns the minimum of two int values.

    Declaration
    public static int min(int x, int y)
    Parameters
    Type Name Description
    int x

    The first input value.

    int y

    The second input value.

    Returns
    Type Description
    int

    The minimum of the two input values.

    min(int2, int2)

    Returns the componentwise minimum of two int2 vectors.

    Declaration
    public static int2 min(int2 x, int2 y)
    Parameters
    Type Name Description
    int2 x

    The first input value.

    int2 y

    The second input value.

    Returns
    Type Description
    int2

    The componentwise minimum of the two input values.

    min(int3, int3)

    Returns the componentwise minimum of two int3 vectors.

    Declaration
    public static int3 min(int3 x, int3 y)
    Parameters
    Type Name Description
    int3 x

    The first input value.

    int3 y

    The second input value.

    Returns
    Type Description
    int3

    The componentwise minimum of the two input values.

    min(int4, int4)

    Returns the componentwise minimum of two int4 vectors.

    Declaration
    public static int4 min(int4 x, int4 y)
    Parameters
    Type Name Description
    int4 x

    The first input value.

    int4 y

    The second input value.

    Returns
    Type Description
    int4

    The componentwise minimum of the two input values.

    min(uint, uint)

    Returns the minimum of two uint values.

    Declaration
    public static uint min(uint x, uint y)
    Parameters
    Type Name Description
    uint x

    The first input value.

    uint y

    The second input value.

    Returns
    Type Description
    uint

    The minimum of the two input values.

    min(uint2, uint2)

    Returns the componentwise minimum of two uint2 vectors.

    Declaration
    public static uint2 min(uint2 x, uint2 y)
    Parameters
    Type Name Description
    uint2 x

    The first input value.

    uint2 y

    The second input value.

    Returns
    Type Description
    uint2

    The componentwise minimum of the two input values.

    min(uint3, uint3)

    Returns the componentwise minimum of two uint3 vectors.

    Declaration
    public static uint3 min(uint3 x, uint3 y)
    Parameters
    Type Name Description
    uint3 x

    The first input value.

    uint3 y

    The second input value.

    Returns
    Type Description
    uint3

    The componentwise minimum of the two input values.

    min(uint4, uint4)

    Returns the componentwise minimum of two uint4 vectors.

    Declaration
    public static uint4 min(uint4 x, uint4 y)
    Parameters
    Type Name Description
    uint4 x

    The first input value.

    uint4 y

    The second input value.

    Returns
    Type Description
    uint4

    The componentwise minimum of the two input values.

    min(long, long)

    Returns the minimum of two long values.

    Declaration
    public static long min(long x, long y)
    Parameters
    Type Name Description
    long x

    The first input value.

    long y

    The second input value.

    Returns
    Type Description
    long

    The minimum of the two input values.

    min(ulong, ulong)

    Returns the minimum of two ulong values.

    Declaration
    public static ulong min(ulong x, ulong y)
    Parameters
    Type Name Description
    ulong x

    The first input value.

    ulong y

    The second input value.

    Returns
    Type Description
    ulong

    The minimum of the two input values.

    min(float, float)

    Returns the minimum of two float values.

    Declaration
    public static float min(float x, float y)
    Parameters
    Type Name Description
    float x

    The first input value.

    float y

    The second input value.

    Returns
    Type Description
    float

    The minimum of the two input values.

    min(float2, float2)

    Returns the componentwise minimum of two float2 vectors.

    Declaration
    public static float2 min(float2 x, float2 y)
    Parameters
    Type Name Description
    float2 x

    The first input value.

    float2 y

    The second input value.

    Returns
    Type Description
    float2

    The componentwise minimum of the two input values.

    min(float3, float3)

    Returns the componentwise minimum of two float3 vectors.

    Declaration
    public static float3 min(float3 x, float3 y)
    Parameters
    Type Name Description
    float3 x

    The first input value.

    float3 y

    The second input value.

    Returns
    Type Description
    float3

    The componentwise minimum of the two input values.

    min(float4, float4)

    Returns the componentwise minimum of two float4 vectors.

    Declaration
    public static float4 min(float4 x, float4 y)
    Parameters
    Type Name Description
    float4 x

    The first input value.

    float4 y

    The second input value.

    Returns
    Type Description
    float4

    The componentwise minimum of the two input values.

    min(double, double)

    Returns the minimum of two double values.

    Declaration
    public static double min(double x, double y)
    Parameters
    Type Name Description
    double x

    The first input value.

    double y

    The second input value.

    Returns
    Type Description
    double

    The minimum of the two input values.

    min(double2, double2)

    Returns the componentwise minimum of two double2 vectors.

    Declaration
    public static double2 min(double2 x, double2 y)
    Parameters
    Type Name Description
    double2 x

    The first input value.

    double2 y

    The second input value.

    Returns
    Type Description
    double2

    The componentwise minimum of the two input values.

    min(double3, double3)

    Returns the componentwise minimum of two double3 vectors.

    Declaration
    public static double3 min(double3 x, double3 y)
    Parameters
    Type Name Description
    double3 x

    The first input value.

    double3 y

    The second input value.

    Returns
    Type Description
    double3

    The componentwise minimum of the two input values.

    min(double4, double4)

    Returns the componentwise minimum of two double4 vectors.

    Declaration
    public static double4 min(double4 x, double4 y)
    Parameters
    Type Name Description
    double4 x

    The first input value.

    double4 y

    The second input value.

    Returns
    Type Description
    double4

    The componentwise minimum of the two input values.

    In This Article
    • min(int, int)
    • min(int2, int2)
    • min(int3, int3)
    • min(int4, int4)
    • min(uint, uint)
    • min(uint2, uint2)
    • min(uint3, uint3)
    • min(uint4, uint4)
    • min(long, long)
    • min(ulong, ulong)
    • min(float, float)
    • min(float2, float2)
    • min(float3, float3)
    • min(float4, float4)
    • min(double, double)
    • min(double2, double2)
    • min(double3, double3)
    • min(double4, double4)
    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)