isfinite
Returns true if the input float is a finite floating point value, false otherwise.
Read time 2 minutesLast updated 10 days ago
Definition
- Type: Method
- Namespace: Unity.Mathematics
- Assembly: UnityEngine.MathematicsModule
isfinite(float)
Returns true if the input float is a finite floating point value, false otherwise.
public static bool isfinite(float x)
Parameters
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.
public static bool2 isfinite(float2 x)
Parameters
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.
public static bool3 isfinite(float3 x)
Parameters
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.
public static bool4 isfinite(float4 x)
Parameters
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.
public static bool isfinite(double x)
Parameters
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.
public static bool2 isfinite(double2 x)
Parameters
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.
public static bool3 isfinite(double3 x)
Parameters
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.
public static bool4 isfinite(double4 x)
Parameters
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. |