docs.unity.cn
    Show / Hide Table of Contents

    Operator Explicit

    Explicit(Single to half)

    Explicitly converts a float value to a half value.

    Declaration
    public static explicit operator half(float v)
    Parameters
    Type Name Description
    Single v

    The single precision float value to convert to half.

    Returns
    Type Description
    half

    The converted half value.

    Explicit(Double to half)

    Explicitly converts a double value to a half value.

    Declaration
    public static explicit operator half(double v)
    Parameters
    Type Name Description
    Double v

    The double precision float value to convert to half.

    Returns
    Type Description
    half

    The converted half value.

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