# isinf

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

## Definition

* **Type:** Method
* **Namespace:** [Unity.Mathematics](/engine/6000.5/script-reference/unity/mathematics.md)
* **Assembly:** UnityEngine.MathematicsModule

## isinf(float)

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

```csharp
public static bool isinf(float x)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Input value.

### Returns

| Type                                                          | Description                                               |
| ------------------------------------------------------------- | --------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | 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.

```csharp
public static bool2 isinf(float2 x)
```

### Parameters

**** (\[float2]\(/engine/6000.5/script-reference/unity/mathematics/float2)): Input value.

### Returns

| Type                                                                | Description                                                   |
| ------------------------------------------------------------------- | ------------------------------------------------------------- |
| [bool2](/engine/6000.5/script-reference/unity/mathematics/bool2.md) | 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.

```csharp
public static bool3 isinf(float3 x)
```

### Parameters

**** (\[float3]\(/engine/6000.5/script-reference/unity/mathematics/float3)): Input value.

### Returns

| Type                                                                | Description                                                   |
| ------------------------------------------------------------------- | ------------------------------------------------------------- |
| [bool3](/engine/6000.5/script-reference/unity/mathematics/bool3.md) | 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.

```csharp
public static bool4 isinf(float4 x)
```

### Parameters

**** (\[float4]\(/engine/6000.5/script-reference/unity/mathematics/float4)): Input value.

### Returns

| Type                                                                | Description                                                   |
| ------------------------------------------------------------------- | ------------------------------------------------------------- |
| [bool4](/engine/6000.5/script-reference/unity/mathematics/bool4.md) | 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.

```csharp
public static bool isinf(double x)
```

### Parameters

**** (\[double]\(https\://learn.microsoft.com/dotnet/api/system.double)): Input value.

### Returns

| Type                                                          | Description                                               |
| ------------------------------------------------------------- | --------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | 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.

```csharp
public static bool2 isinf(double2 x)
```

### Parameters

**** (\[double2]\(/engine/6000.5/script-reference/unity/mathematics/double2)): Input value.

### Returns

| Type                                                                | Description                                                   |
| ------------------------------------------------------------------- | ------------------------------------------------------------- |
| [bool2](/engine/6000.5/script-reference/unity/mathematics/bool2.md) | 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.

```csharp
public static bool3 isinf(double3 x)
```

### Parameters

**** (\[double3]\(/engine/6000.5/script-reference/unity/mathematics/double3)): Input value.

### Returns

| Type                                                                | Description                                                   |
| ------------------------------------------------------------------- | ------------------------------------------------------------- |
| [bool3](/engine/6000.5/script-reference/unity/mathematics/bool3.md) | 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.

```csharp
public static bool4 isinf(double4 x)
```

### Parameters

**** (\[double4]\(/engine/6000.5/script-reference/unity/mathematics/double4)): Input value.

### Returns

| Type                                                                | Description                                                   |
| ------------------------------------------------------------------- | ------------------------------------------------------------- |
| [bool4](/engine/6000.5/script-reference/unity/mathematics/bool4.md) | True if the component was an infinite value; false otherwise. |
