docs.unity.cn
    Show / Hide Table of Contents

    Constructor double2

    double2(Double, Double)

    Constructs a double2 vector from two double values.

    Declaration
    public double2(double x, double y)
    Parameters
    Type Name Description
    Double x

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

    Double y

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

    double2(double2)

    Constructs a double2 vector from a double2 vector.

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

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

    double2(Double)

    Constructs a double2 vector from a single double value by assigning it to every component.

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

    double to convert to double2

    double2(Boolean)

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

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

    bool to convert to double2

    double2(bool2)

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

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

    bool2 to convert to double2

    double2(Int32)

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

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

    int to convert to double2

    double2(int2)

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

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

    int2 to convert to double2

    double2(UInt32)

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

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

    uint to convert to double2

    double2(uint2)

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

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

    uint2 to convert to double2

    double2(half)

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

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

    half to convert to double2

    double2(half2)

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

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

    half2 to convert to double2

    double2(Single)

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

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

    float to convert to double2

    double2(float2)

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

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

    float2 to convert to double2

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