---
name: "BIS_fnc_interpolateVectorConstant"
type: function
status: ok
groups: ["Interpolation", "Vectors"]
arma3_since: "1.78"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_interpolateVectorConstant
revid: 349200
updated: 2023-11-08T14:50:42Z
---

# BIS_fnc_interpolateVectorConstant

*Function · Interpolation, Vectors · Arma 3 v1.78*

## Description

Interpolates vector to target linearly.

## Syntax

```sqf
[currentValue, targetValue, delta, interpSpeed] call BIS_fnc_interpolateVectorConstant
```

**Parameters:**

- `currentValue`: [Array](../topics/Array.md) - the current value
- `targetValue`: [Array](../topics/Array.md) - the target value
- `delta`: [Number](../topics/Number.md) - (Optional, default 0) the delta time
- `interpSpeed`: [Number](../topics/Number.md) - (Optional, default 0) the interpolation speed

**Returns:** [Array](../topics/Array.md) - the interpolated value

## Examples

### Example 1

```sqf
[[1,1,1], [20,20,20], 0.2, 0.1] call BIS_fnc_interpolateVectorConstant;
```

## See also

[BIS_fnc_interpolateConstant](../functions/BIS_fnc_interpolateConstant.md) · [BIS_fnc_interpolate](../functions/BIS_fnc_interpolate.md) · [BIS_fnc_interpolateVector](../functions/BIS_fnc_interpolateVector.md)

<sub>Source: [BI Community Wiki — BIS fnc interpolateVectorConstant](https://community.bistudio.com/wiki/BIS_fnc_interpolateVectorConstant) (revision 349200).</sub>
