# Dot(Vector4, Vector4)

> Calculates the dot product of two vectors.

## Definition

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

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

### Parameters

**** (\[Vector4]\(/engine/6000.0/script-reference/unityengine/vector4)): The first vector.**** (\[Vector4]\(/engine/6000.0/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`. |
