# Dot

> Calculates the dot product of two vectors.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

## Dot(Vector4, Vector4)

Calculates the dot product of two vectors.

```csharp
public static float Dot(Vector4 a, Vector4 b)
```

### Parameters

**** (\[Vector4]\(/engine/6000.7/script-reference/unityengine/vector4)): The first vector.**** (\[Vector4]\(/engine/6000.7/script-reference/unityengine/vector4)): The second vector.

### Returns

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

## Dot(Vector4, Vector4)

Calculates the dot product of two vectors.

```csharp
public static float Dot(in Vector4 a, in Vector4 b)
```

### Parameters

**** (\[Vector4]\(/engine/6000.7/script-reference/unityengine/vector4)): The first vector.**** (\[Vector4]\(/engine/6000.7/script-reference/unityengine/vector4)): The second vector.

### Returns

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