# all

> Returns true if all components of the input bool2 vector are true, false otherwise.

## Definition

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

## all(bool2)

Returns true if all components of the input bool2 vector are true, false otherwise.

```csharp
public static bool all(bool2 x)
```

### Parameters

**** (\[bool2]\(/engine/6000.7/script-reference/unity/mathematics/bool2)): Vector of values to compare.

### Returns

| Type                                                          | Description                                                |
| ------------------------------------------------------------- | ---------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if all the components of x are true, false otherwise. |

## all(bool3)

Returns true if all components of the input bool3 vector are true, false otherwise.

```csharp
public static bool all(bool3 x)
```

### Parameters

**** (\[bool3]\(/engine/6000.7/script-reference/unity/mathematics/bool3)): Vector of values to compare.

### Returns

| Type                                                          | Description                                                |
| ------------------------------------------------------------- | ---------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if all the components of x are true, false otherwise. |

## all(bool4)

Returns true if all components of the input bool4 vector are true, false otherwise.

```csharp
public static bool all(bool4 x)
```

### Parameters

**** (\[bool4]\(/engine/6000.7/script-reference/unity/mathematics/bool4)): Vector of values to compare.

### Returns

| Type                                                          | Description                                                |
| ------------------------------------------------------------- | ---------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if all the components of x are true, false otherwise. |

## all(int2)

Returns true if all components of the input int2 vector are non-zero, false otherwise.

```csharp
public static bool all(int2 x)
```

### Parameters

**** (\[int2]\(/engine/6000.7/script-reference/unity/mathematics/int2)): Vector of values to compare.

### Returns

| Type                                                          | Description                                                    |
| ------------------------------------------------------------- | -------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if all the components of x are non-zero, false otherwise. |

## all(int3)

Returns true if all components of the input int3 vector are non-zero, false otherwise.

```csharp
public static bool all(int3 x)
```

### Parameters

**** (\[int3]\(/engine/6000.7/script-reference/unity/mathematics/int3)): Vector of values to compare.

### Returns

| Type                                                          | Description                                                    |
| ------------------------------------------------------------- | -------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if all the components of x are non-zero, false otherwise. |

## all(int4)

Returns true if all components of the input int4 vector are non-zero, false otherwise.

```csharp
public static bool all(int4 x)
```

### Parameters

**** (\[int4]\(/engine/6000.7/script-reference/unity/mathematics/int4)): Vector of values to compare.

### Returns

| Type                                                          | Description                                                    |
| ------------------------------------------------------------- | -------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if all the components of x are non-zero, false otherwise. |

## all(uint2)

Returns true if all components of the input uint2 vector are non-zero, false otherwise.

```csharp
public static bool all(uint2 x)
```

### Parameters

**** (\[uint2]\(/engine/6000.7/script-reference/unity/mathematics/uint2)): Vector of values to compare.

### Returns

| Type                                                          | Description                                                    |
| ------------------------------------------------------------- | -------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if all the components of x are non-zero, false otherwise. |

## all(uint3)

Returns true if all components of the input uint3 vector are non-zero, false otherwise.

```csharp
public static bool all(uint3 x)
```

### Parameters

**** (\[uint3]\(/engine/6000.7/script-reference/unity/mathematics/uint3)): Vector of values to compare.

### Returns

| Type                                                          | Description                                                    |
| ------------------------------------------------------------- | -------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if all the components of x are non-zero, false otherwise. |

## all(uint4)

Returns true if all components of the input uint4 vector are non-zero, false otherwise.

```csharp
public static bool all(uint4 x)
```

### Parameters

**** (\[uint4]\(/engine/6000.7/script-reference/unity/mathematics/uint4)): Vector of values to compare.

### Returns

| Type                                                          | Description                                                    |
| ------------------------------------------------------------- | -------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if all the components of x are non-zero, false otherwise. |

## all(float2)

Returns true if all components of the input float2 vector are non-zero, false otherwise.

```csharp
public static bool all(float2 x)
```

### Parameters

**** (\[float2]\(/engine/6000.7/script-reference/unity/mathematics/float2)): Vector of values to compare.

### Returns

| Type                                                          | Description                                                    |
| ------------------------------------------------------------- | -------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if all the components of x are non-zero, false otherwise. |

## all(float3)

Returns true if all components of the input float3 vector are non-zero, false otherwise.

```csharp
public static bool all(float3 x)
```

### Parameters

**** (\[float3]\(/engine/6000.7/script-reference/unity/mathematics/float3)): Vector of values to compare.

### Returns

| Type                                                          | Description                                                    |
| ------------------------------------------------------------- | -------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if all the components of x are non-zero, false otherwise. |

## all(float4)

Returns true if all components of the input float4 vector are non-zero, false otherwise.

```csharp
public static bool all(float4 x)
```

### Parameters

**** (\[float4]\(/engine/6000.7/script-reference/unity/mathematics/float4)): Vector of values to compare.

### Returns

| Type                                                          | Description                                                    |
| ------------------------------------------------------------- | -------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if all the components of x are non-zero, false otherwise. |

## all(double2)

Returns true if all components of the input double2 vector are non-zero, false otherwise.

```csharp
public static bool all(double2 x)
```

### Parameters

**** (\[double2]\(/engine/6000.7/script-reference/unity/mathematics/double2)): Vector of values to compare.

### Returns

| Type                                                          | Description                                                    |
| ------------------------------------------------------------- | -------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if all the components of x are non-zero, false otherwise. |

## all(double3)

Returns true if all components of the input double3 vector are non-zero, false otherwise.

```csharp
public static bool all(double3 x)
```

### Parameters

**** (\[double3]\(/engine/6000.7/script-reference/unity/mathematics/double3)): Vector of values to compare.

### Returns

| Type                                                          | Description                                                    |
| ------------------------------------------------------------- | -------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if all the components of x are non-zero, false otherwise. |

## all(double4)

Returns true if all components of the input double4 vector are non-zero, false otherwise.

```csharp
public static bool all(double4 x)
```

### Parameters

**** (\[double4]\(/engine/6000.7/script-reference/unity/mathematics/double4)): Vector of values to compare.

### Returns

| Type                                                          | Description                                                    |
| ------------------------------------------------------------- | -------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if all the components of x are non-zero, false otherwise. |
