# Vector2.Dot

## Overload 1

```csharp
static float Dot(Vector2 a, Vector2 b)
```

Returns the scalar/dot product between the 2 given vectors.

### Parameters

- `a` (`Vector2`)
- `b` (`Vector2`)

### Returns

`float`

## Overload 2

```csharp
float Dot(in Vector2 b)
```

Returns the scalar/dot product between this and the given vector.

### Parameters

- `in b` (`Vector2`)

### Returns

`float`

Declared in [Vector2](/api/Vector2).
Assembly: `Sandbox.System`.
