# dot

> Returns the dot product of two int values. Equivalent to multiplication.

## Definition

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

## dot(int, int)

Returns the dot product of two int values. Equivalent to multiplication.

```csharp
public static int dot(int x, int y)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The first value.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The second value.

### Returns

| Type                                                       | Description                    |
| ---------------------------------------------------------- | ------------------------------ |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The dot product of two values. |

## dot(int2, int2)

Returns the dot product of two int2 vectors.

```csharp
public static int dot(int2 x, int2 y)
```

### Parameters

**** (\[int2]\(/engine/6000.5/script-reference/unity/mathematics/int2)): The first vector.**** (\[int2]\(/engine/6000.5/script-reference/unity/mathematics/int2)): The second vector.

### Returns

| Type                                                       | Description                     |
| ---------------------------------------------------------- | ------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The dot product of two vectors. |

## dot(int3, int3)

Returns the dot product of two int3 vectors.

```csharp
public static int dot(int3 x, int3 y)
```

### Parameters

**** (\[int3]\(/engine/6000.5/script-reference/unity/mathematics/int3)): The first vector.**** (\[int3]\(/engine/6000.5/script-reference/unity/mathematics/int3)): The second vector.

### Returns

| Type                                                       | Description                     |
| ---------------------------------------------------------- | ------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The dot product of two vectors. |

## dot(int4, int4)

Returns the dot product of two int4 vectors.

```csharp
public static int dot(int4 x, int4 y)
```

### Parameters

**** (\[int4]\(/engine/6000.5/script-reference/unity/mathematics/int4)): The first vector.**** (\[int4]\(/engine/6000.5/script-reference/unity/mathematics/int4)): The second vector.

### Returns

| Type                                                       | Description                     |
| ---------------------------------------------------------- | ------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The dot product of two vectors. |

## dot(uint, uint)

Returns the dot product of two uint values. Equivalent to multiplication.

```csharp
public static uint dot(uint x, uint y)
```

### Parameters

**** (\[uint]\(https\://learn.microsoft.com/dotnet/api/system.uint32)): The first value.**** (\[uint]\(https\://learn.microsoft.com/dotnet/api/system.uint32)): The second value.

### Returns

| Type                                                         | Description                    |
| ------------------------------------------------------------ | ------------------------------ |
| [uint](https://learn.microsoft.com/dotnet/api/system.uint32) | The dot product of two values. |

## dot(uint2, uint2)

Returns the dot product of two uint2 vectors.

```csharp
public static uint dot(uint2 x, uint2 y)
```

### Parameters

**** (\[uint2]\(/engine/6000.5/script-reference/unity/mathematics/uint2)): The first vector.**** (\[uint2]\(/engine/6000.5/script-reference/unity/mathematics/uint2)): The second vector.

### Returns

| Type                                                         | Description                     |
| ------------------------------------------------------------ | ------------------------------- |
| [uint](https://learn.microsoft.com/dotnet/api/system.uint32) | The dot product of two vectors. |

## dot(uint3, uint3)

Returns the dot product of two uint3 vectors.

```csharp
public static uint dot(uint3 x, uint3 y)
```

### Parameters

**** (\[uint3]\(/engine/6000.5/script-reference/unity/mathematics/uint3)): The first vector.**** (\[uint3]\(/engine/6000.5/script-reference/unity/mathematics/uint3)): The second vector.

### Returns

| Type                                                         | Description                     |
| ------------------------------------------------------------ | ------------------------------- |
| [uint](https://learn.microsoft.com/dotnet/api/system.uint32) | The dot product of two vectors. |

## dot(uint4, uint4)

Returns the dot product of two uint4 vectors.

```csharp
public static uint dot(uint4 x, uint4 y)
```

### Parameters

**** (\[uint4]\(/engine/6000.5/script-reference/unity/mathematics/uint4)): The first vector.**** (\[uint4]\(/engine/6000.5/script-reference/unity/mathematics/uint4)): The second vector.

### Returns

| Type                                                         | Description                     |
| ------------------------------------------------------------ | ------------------------------- |
| [uint](https://learn.microsoft.com/dotnet/api/system.uint32) | The dot product of two vectors. |

## dot(float, float)

Returns the dot product of two float values. Equivalent to multiplication.

```csharp
public static float dot(float x, float y)
```

### Parameters

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

### Returns

| Type                                                          | Description                    |
| ------------------------------------------------------------- | ------------------------------ |
| [float](https://learn.microsoft.com/dotnet/api/system.single) | The dot product of two values. |

## dot(float2, float2)

Returns the dot product of two float2 vectors.

```csharp
public static float dot(float2 x, float2 y)
```

### Parameters

**** (\[float2]\(/engine/6000.5/script-reference/unity/mathematics/float2)): The first vector.**** (\[float2]\(/engine/6000.5/script-reference/unity/mathematics/float2)): The second vector.

### Returns

| Type                                                          | Description                     |
| ------------------------------------------------------------- | ------------------------------- |
| [float](https://learn.microsoft.com/dotnet/api/system.single) | The dot product of two vectors. |

## dot(float3, float3)

Returns the dot product of two float3 vectors.

```csharp
public static float dot(float3 x, float3 y)
```

### Parameters

**** (\[float3]\(/engine/6000.5/script-reference/unity/mathematics/float3)): The first vector.**** (\[float3]\(/engine/6000.5/script-reference/unity/mathematics/float3)): The second vector.

### Returns

| Type                                                          | Description                     |
| ------------------------------------------------------------- | ------------------------------- |
| [float](https://learn.microsoft.com/dotnet/api/system.single) | The dot product of two vectors. |

## dot(float4, float4)

Returns the dot product of two float4 vectors.

```csharp
public static float dot(float4 x, float4 y)
```

### Parameters

**** (\[float4]\(/engine/6000.5/script-reference/unity/mathematics/float4)): The first vector.**** (\[float4]\(/engine/6000.5/script-reference/unity/mathematics/float4)): The second vector.

### Returns

| Type                                                          | Description                     |
| ------------------------------------------------------------- | ------------------------------- |
| [float](https://learn.microsoft.com/dotnet/api/system.single) | The dot product of two vectors. |

## dot(double, double)

Returns the dot product of two double values. Equivalent to multiplication.

```csharp
public static double dot(double x, double y)
```

### Parameters

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

### Returns

| Type                                                           | Description                    |
| -------------------------------------------------------------- | ------------------------------ |
| [double](https://learn.microsoft.com/dotnet/api/system.double) | The dot product of two values. |

## dot(double2, double2)

Returns the dot product of two double2 vectors.

```csharp
public static double dot(double2 x, double2 y)
```

### Parameters

**** (\[double2]\(/engine/6000.5/script-reference/unity/mathematics/double2)): The first vector.**** (\[double2]\(/engine/6000.5/script-reference/unity/mathematics/double2)): The second vector.

### Returns

| Type                                                           | Description                     |
| -------------------------------------------------------------- | ------------------------------- |
| [double](https://learn.microsoft.com/dotnet/api/system.double) | The dot product of two vectors. |

## dot(double3, double3)

Returns the dot product of two double3 vectors.

```csharp
public static double dot(double3 x, double3 y)
```

### Parameters

**** (\[double3]\(/engine/6000.5/script-reference/unity/mathematics/double3)): The first vector.**** (\[double3]\(/engine/6000.5/script-reference/unity/mathematics/double3)): The second vector.

### Returns

| Type                                                           | Description                     |
| -------------------------------------------------------------- | ------------------------------- |
| [double](https://learn.microsoft.com/dotnet/api/system.double) | The dot product of two vectors. |

## dot(double4, double4)

Returns the dot product of two double4 vectors.

```csharp
public static double dot(double4 x, double4 y)
```

### Parameters

**** (\[double4]\(/engine/6000.5/script-reference/unity/mathematics/double4)): The first vector.**** (\[double4]\(/engine/6000.5/script-reference/unity/mathematics/double4)): The second vector.

### Returns

| Type                                                           | Description                     |
| -------------------------------------------------------------- | ------------------------------- |
| [double](https://learn.microsoft.com/dotnet/api/system.double) | The dot product of two vectors. |

## dot(quaternion, quaternion)

Returns the dot product of two quaternions.

```csharp
public static float dot(quaternion a, quaternion b)
```

### Parameters

**** (\[quaternion]\(/engine/6000.5/script-reference/unity/mathematics/quaternion)): The first quaternion.**** (\[quaternion]\(/engine/6000.5/script-reference/unity/mathematics/quaternion)): The second quaternion.

### Returns

| Type                                                          | Description                         |
| ------------------------------------------------------------- | ----------------------------------- |
| [float](https://learn.microsoft.com/dotnet/api/system.single) | The dot product of two quaternions. |
