docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method isfinite

    isfinite(float)

    Returns true if the input float is a finite floating point value, false otherwise.

    Declaration
    public static bool isfinite(float x)
    Parameters
    Type Name Description
    float x

    The float value to test.

    Returns
    Type Description
    bool

    True if the float is finite, false otherwise.

    isfinite(float2)

    Returns a bool2 indicating for each component of a float2 whether it is a finite floating point value.

    Declaration
    public static bool2 isfinite(float2 x)
    Parameters
    Type Name Description
    float2 x

    The float2 value to test.

    Returns
    Type Description
    bool2

    A bool2 where it is true in a component if that component is finite, false otherwise.

    isfinite(float3)

    Returns a bool3 indicating for each component of a float3 whether it is a finite floating point value.

    Declaration
    public static bool3 isfinite(float3 x)
    Parameters
    Type Name Description
    float3 x

    The float3 value to test.

    Returns
    Type Description
    bool3

    A bool3 where it is true in a component if that component is finite, false otherwise.

    isfinite(float4)

    Returns a bool4 indicating for each component of a float4 whether it is a finite floating point value.

    Declaration
    public static bool4 isfinite(float4 x)
    Parameters
    Type Name Description
    float4 x

    The float4 value to test.

    Returns
    Type Description
    bool4

    A bool4 where it is true in a component if that component is finite, false otherwise.

    isfinite(double)

    Returns true if the input double is a finite floating point value, false otherwise.

    Declaration
    public static bool isfinite(double x)
    Parameters
    Type Name Description
    double x

    The double value to test.

    Returns
    Type Description
    bool

    True if the double is finite, false otherwise.

    isfinite(double2)

    Returns a bool2 indicating for each component of a double2 whether it is a finite floating point value.

    Declaration
    public static bool2 isfinite(double2 x)
    Parameters
    Type Name Description
    double2 x

    The double2 value to test.

    Returns
    Type Description
    bool2

    A bool2 where it is true in a component if that component is finite, false otherwise.

    isfinite(double3)

    Returns a bool3 indicating for each component of a double3 whether it is a finite floating point value.

    Declaration
    public static bool3 isfinite(double3 x)
    Parameters
    Type Name Description
    double3 x

    The double3 value to test.

    Returns
    Type Description
    bool3

    A bool3 where it is true in a component if that component is finite, false otherwise.

    isfinite(double4)

    Returns a bool4 indicating for each component of a double4 whether it is a finite floating point value.

    Declaration
    public static bool4 isfinite(double4 x)
    Parameters
    Type Name Description
    double4 x

    The double4 value to test.

    Returns
    Type Description
    bool4

    A bool4 where it is true in a component if that component is finite, false otherwise.

    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)