docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method isinf

    isinf(float)

    Returns true if the input float is an infinite floating point value, false otherwise.

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

    Input value.

    Returns
    Type Description
    bool

    True if the input was an infinite value; false otherwise.

    isinf(float2)

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

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

    Input value.

    Returns
    Type Description
    bool2

    True if the component was an infinite value; false otherwise.

    isinf(float3)

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

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

    Input value.

    Returns
    Type Description
    bool3

    True if the component was an infinite value; false otherwise.

    isinf(float4)

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

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

    Input value.

    Returns
    Type Description
    bool4

    True if the component was an infinite value; false otherwise.

    isinf(double)

    Returns true if the input double is an infinite floating point value, false otherwise.

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

    Input value.

    Returns
    Type Description
    bool

    True if the input was an infinite value; false otherwise.

    isinf(double2)

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

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

    Input value.

    Returns
    Type Description
    bool2

    True if the component was an infinite value; false otherwise.

    isinf(double3)

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

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

    Input value.

    Returns
    Type Description
    bool3

    True if the component was an infinite value; false otherwise.

    isinf(double4)

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

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

    Input value.

    Returns
    Type Description
    bool4

    True if the component was an infinite value; 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)