docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor half2

    half2(half, half)

    Constructs a half2 vector from two half values.

    Declaration
    public half2(half x, half y)
    Parameters
    Type Name Description
    half x

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

    half y

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

    half2(half2)

    Constructs a half2 vector from a half2 vector.

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

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

    half2(half)

    Constructs a half2 vector from a single half value by assigning it to every component.

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

    half to convert to half2

    half2(float)

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

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

    float to convert to half2

    half2(float2)

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

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

    float2 to convert to half2

    half2(double)

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

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

    double to convert to half2

    half2(double2)

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

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

    double2 to convert to half2

    In This Article
    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)