---
name: "BIS_fnc_dotProduct"
type: function
status: ok
groups: ["Vectors"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_dotProduct
revid: 341319
updated: 2023-05-21T15:52:21Z
---

# BIS_fnc_dotProduct

*Function · Vectors · Arma 3 v0.50 · introduced in Arma 2 v1.00*

## Description

Dot product of two vectors. 

> [!NOTE]
> **Arma 3:** In Arma 3 use [vectorDotProduct](../commands/vectorDotProduct.md).

## Syntax

```sqf
[vector1, vector2] call BIS_fnc_dotProduct
```

**Parameters:**

- `vector1`: [Array](../topics/Array.md)
- `vector2`: [Array](../topics/Array.md)

**Returns:** [Number](../topics/Number.md)

## Examples

### Example 1

```sqf
[[1,2,3], [1,2,3]] call BIS_fnc_dotProduct; // returns: 1*1 + 2*2 + 3*3 = 14
```

### Example 2

```sqf
[[1,2,3,4], [1,2,3,4]] call BIS_fnc_dotProduct; // returns 1*1 + 2*2 + 3*3 + 4*4 = 30
```

## See also

[vectorDotProduct](../commands/vectorDotProduct.md)

<sub>Source: [BI Community Wiki — BIS fnc dotProduct](https://community.bistudio.com/wiki/BIS_fnc_dotProduct) (revision 341319).</sub>
