docs.unity.cn
    Show / Hide Table of Contents

    Method uint2

    uint2(UInt32, UInt32)

    Returns a uint2 vector constructed from two uint values.

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

    The constructed vector's x component will be set to this value.

    UInt32 y

    The constructed vector's y component will be set to this value.

    Returns
    Type Description
    uint2

    uint2 constructed from arguments.

    uint2(uint2)

    Returns a uint2 vector constructed from a uint2 vector.

    Declaration
    public static uint2 uint2(uint2 xy)
    Parameters
    Type Name Description
    uint2 xy

    The constructed vector's xy components will be set to this value.

    Returns
    Type Description
    uint2

    uint2 constructed from arguments.

    uint2(UInt32)

    Returns a uint2 vector constructed from a single uint value by assigning it to every component.

    Declaration
    public static uint2 uint2(uint v)
    Parameters
    Type Name Description
    UInt32 v

    uint to convert to uint2

    Returns
    Type Description
    uint2

    Converted value.

    uint2(Boolean)

    Returns a uint2 vector constructed from a single bool value by converting it to uint and assigning it to every component.

    Declaration
    public static uint2 uint2(bool v)
    Parameters
    Type Name Description
    Boolean v

    bool to convert to uint2

    Returns
    Type Description
    uint2

    Converted value.

    uint2(bool2)

    Return a uint2 vector constructed from a bool2 vector by componentwise conversion.

    Declaration
    public static uint2 uint2(bool2 v)
    Parameters
    Type Name Description
    bool2 v

    bool2 to convert to uint2

    Returns
    Type Description
    uint2

    Converted value.

    uint2(Int32)

    Returns a uint2 vector constructed from a single int value by converting it to uint and assigning it to every component.

    Declaration
    public static uint2 uint2(int v)
    Parameters
    Type Name Description
    Int32 v

    int to convert to uint2

    Returns
    Type Description
    uint2

    Converted value.

    uint2(int2)

    Return a uint2 vector constructed from a int2 vector by componentwise conversion.

    Declaration
    public static uint2 uint2(int2 v)
    Parameters
    Type Name Description
    int2 v

    int2 to convert to uint2

    Returns
    Type Description
    uint2

    Converted value.

    uint2(Single)

    Returns a uint2 vector constructed from a single float value by converting it to uint and assigning it to every component.

    Declaration
    public static uint2 uint2(float v)
    Parameters
    Type Name Description
    Single v

    float to convert to uint2

    Returns
    Type Description
    uint2

    Converted value.

    uint2(float2)

    Return a uint2 vector constructed from a float2 vector by componentwise conversion.

    Declaration
    public static uint2 uint2(float2 v)
    Parameters
    Type Name Description
    float2 v

    float2 to convert to uint2

    Returns
    Type Description
    uint2

    Converted value.

    uint2(Double)

    Returns a uint2 vector constructed from a single double value by converting it to uint and assigning it to every component.

    Declaration
    public static uint2 uint2(double v)
    Parameters
    Type Name Description
    Double v

    double to convert to uint2

    Returns
    Type Description
    uint2

    Converted value.

    uint2(double2)

    Return a uint2 vector constructed from a double2 vector by componentwise conversion.

    Declaration
    public static uint2 uint2(double2 v)
    Parameters
    Type Name Description
    double2 v

    double2 to convert to uint2

    Returns
    Type Description
    uint2

    Converted value.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, March 29, 2022
    Terms of use