docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method IsNaN

    IsNaN(Vector2)

    Checks if the Vector2 contains NaN for x or y.

    Declaration
    public static bool IsNaN(this Vector2 v)
    Parameters
    Type Name Description
    Vector2 v

    Vector2 to check for NaN

    Returns
    Type Description
    bool

    True, if any components of the vector are NaN

    IsNaN(Vector3)

    Checks if the Vector2 contains NaN for x or y.

    Declaration
    public static bool IsNaN(this Vector3 v)
    Parameters
    Type Name Description
    Vector3 v

    Vector2 to check for NaN

    Returns
    Type Description
    bool

    True, if any components of the vector are NaN

    In This Article
    Back to top
    Copyright © 2023 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)