docs.unity.cn
    Show / Hide Table of Contents

    Constructor int2

    int2(Int32, Int32)

    Constructs a int2 vector from two int values.

    Declaration
    public int2(int x, int y)
    Parameters
    Type Name Description
    Int32 x

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

    Int32 y

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

    int2(int2)

    Constructs a int2 vector from an int2 vector.

    Declaration
    public int2(int2 xy)
    Parameters
    Type Name Description
    int2 xy

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

    int2(Int32)

    Constructs a int2 vector from a single int value by assigning it to every component.

    Declaration
    public int2(int v)
    Parameters
    Type Name Description
    Int32 v

    int to convert to int2

    int2(Boolean)

    Constructs a int2 vector from a single bool value by converting it to int and assigning it to every component.

    Declaration
    public int2(bool v)
    Parameters
    Type Name Description
    Boolean v

    bool to convert to int2

    int2(bool2)

    Constructs a int2 vector from a bool2 vector by componentwise conversion.

    Declaration
    public int2(bool2 v)
    Parameters
    Type Name Description
    bool2 v

    bool2 to convert to int2

    int2(UInt32)

    Constructs a int2 vector from a single uint value by converting it to int and assigning it to every component.

    Declaration
    public int2(uint v)
    Parameters
    Type Name Description
    UInt32 v

    uint to convert to int2

    int2(uint2)

    Constructs a int2 vector from a uint2 vector by componentwise conversion.

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

    uint2 to convert to int2

    int2(Single)

    Constructs a int2 vector from a single float value by converting it to int and assigning it to every component.

    Declaration
    public int2(float v)
    Parameters
    Type Name Description
    Single v

    float to convert to int2

    int2(float2)

    Constructs a int2 vector from a float2 vector by componentwise conversion.

    Declaration
    public int2(float2 v)
    Parameters
    Type Name Description
    float2 v

    float2 to convert to int2

    int2(Double)

    Constructs a int2 vector from a single double value by converting it to int and assigning it to every component.

    Declaration
    public int2(double v)
    Parameters
    Type Name Description
    Double v

    double to convert to int2

    int2(double2)

    Constructs a int2 vector from a double2 vector by componentwise conversion.

    Declaration
    public int2(double2 v)
    Parameters
    Type Name Description
    double2 v

    double2 to convert to int2

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023