docs.unity.cn
    Show / Hide Table of Contents

    Operator Implicit

    Implicit(Double to double4)

    Implicitly converts a single double value to a double4 vector by assigning it to every component.

    Declaration
    public static implicit operator double4(double v)
    Parameters
    Type Name Description
    Double v

    double to convert to double4

    Returns
    Type Description
    double4

    Converted value.

    Implicit(Int32 to double4)

    Implicitly converts a single int value to a double4 vector by converting it to double and assigning it to every component.

    Declaration
    public static implicit operator double4(int v)
    Parameters
    Type Name Description
    Int32 v

    int to convert to double4

    Returns
    Type Description
    double4

    Converted value.

    Implicit(int4 to double4)

    Implicitly converts a int4 vector to a double4 vector by componentwise conversion.

    Declaration
    public static implicit operator double4(int4 v)
    Parameters
    Type Name Description
    int4 v

    int4 to convert to double4

    Returns
    Type Description
    double4

    Converted value.

    Implicit(UInt32 to double4)

    Implicitly converts a single uint value to a double4 vector by converting it to double and assigning it to every component.

    Declaration
    public static implicit operator double4(uint v)
    Parameters
    Type Name Description
    UInt32 v

    uint to convert to double4

    Returns
    Type Description
    double4

    Converted value.

    Implicit(uint4 to double4)

    Implicitly converts a uint4 vector to a double4 vector by componentwise conversion.

    Declaration
    public static implicit operator double4(uint4 v)
    Parameters
    Type Name Description
    uint4 v

    uint4 to convert to double4

    Returns
    Type Description
    double4

    Converted value.

    Implicit(half to double4)

    Implicitly converts a single half value to a double4 vector by converting it to double and assigning it to every component.

    Declaration
    public static implicit operator double4(half v)
    Parameters
    Type Name Description
    half v

    half to convert to double4

    Returns
    Type Description
    double4

    Converted value.

    Implicit(half4 to double4)

    Implicitly converts a half4 vector to a double4 vector by componentwise conversion.

    Declaration
    public static implicit operator double4(half4 v)
    Parameters
    Type Name Description
    half4 v

    half4 to convert to double4

    Returns
    Type Description
    double4

    Converted value.

    Implicit(Single to double4)

    Implicitly converts a single float value to a double4 vector by converting it to double and assigning it to every component.

    Declaration
    public static implicit operator double4(float v)
    Parameters
    Type Name Description
    Single v

    float to convert to double4

    Returns
    Type Description
    double4

    Converted value.

    Implicit(float4 to double4)

    Implicitly converts a float4 vector to a double4 vector by componentwise conversion.

    Declaration
    public static implicit operator double4(float4 v)
    Parameters
    Type Name Description
    float4 v

    float4 to convert to double4

    Returns
    Type Description
    double4

    Converted value.

    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