docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method ApproximatelyZero

    ApproximatelyZero(float)

    A slightly faster way to do Approximately(a, 0f).

    Declaration
    public static bool ApproximatelyZero(float a)
    Parameters
    Type Name Description
    float a

    The floating point value to compare with 0.

    Returns
    Type Description
    bool

    true if the value is comparable to zero. Otherwise, false.

    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)