[ Web Proxy ]
URL:
Viewing: https://docs.unity3d.com/ScriptReference/Unity.Mathematics.math-double2.html [Back]  [Original]

Unity - Scripting API: Unity.Mathematics.math.double2
Version: Unity 6.5 (6000.5)
    • Supported
    • Legacy
    LanguageEnglish
    • C#

    math.double2

    Suggest a change

    Success!

    Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

    Close

    Submission failed

    For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

    Close
    Your name Your email Suggestion* Submit suggestion

    Cancel

    Declaration

    public static double2 double2(double x, double y);

    Parameters

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

    Returns

    double2 double2 constructed from arguments.

    Description

    Returns a double2 vector constructed from two double values.


    Declaration

    public static double2 double2(double2 xy);

    Parameters

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

    Returns

    double2 double2 constructed from arguments.

    Description

    Returns a double2 vector constructed from a double2 vector.


    Declaration

    public static double2 double2(double v);

    Parameters

    Parameter Description
    v double to convert to double2

    Returns

    double2 Converted value.

    Description

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


    Declaration

    public static double2 double2(bool v);

    Parameters

    Parameter Description
    v bool to convert to double2

    Returns

    double2 Converted value.

    Description

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


    Declaration

    public static double2 double2(bool2 v);

    Parameters

    Parameter Description
    v bool2 to convert to double2

    Returns

    double2 Converted value.

    Description

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


    Declaration

    public static double2 double2(int v);

    Parameters

    Parameter Description
    v int to convert to double2

    Returns

    double2 Converted value.

    Description

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


    Declaration

    public static double2 double2(int2 v);

    Parameters

    Parameter Description
    v int2 to convert to double2

    Returns

    double2 Converted value.

    Description

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


    Declaration

    public static double2 double2(uint v);

    Parameters

    Parameter Description
    v uint to convert to double2

    Returns

    double2 Converted value.

    Description

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


    Declaration

    public static double2 double2(uint2 v);

    Parameters

    Parameter Description
    v uint2 to convert to double2

    Returns

    double2 Converted value.

    Description

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


    Declaration

    public static double2 double2(half v);

    Parameters

    Parameter Description
    v half to convert to double2

    Returns

    double2 Converted value.

    Description

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


    Declaration

    public static double2 double2(half2 v);

    Parameters

    Parameter Description
    v half2 to convert to double2

    Returns

    double2 Converted value.

    Description

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


    Declaration

    public static double2 double2(float v);

    Parameters

    Parameter Description
    v float to convert to double2

    Returns

    double2 Converted value.

    Description

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


    Declaration

    public static double2 double2(float2 v);

    Parameters

    Parameter Description
    v float2 to convert to double2

    Returns

    double2 Converted value.

    Description

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


    Web Proxy Viewer  |  New URL  |  Original Page