---
name: "vectorLinearConversion"
type: command
status: ok
groups: ["Math - Vectors"]
arma3_since: "1.92"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/vectorLinearConversion
revid: 377894
updated: 2026-01-05T17:41:49Z
---

# vectorLinearConversion

*Command · Math - Vectors · Arma 3 v1.92*

## Description

Interpolates vector between the given *vectorFrom* and *vectorTo* value according to the given range value.

## Syntax

```sqf
vectorLinearConversion [rangeFrom, rangeTo, rangeValue, vectorFrom, vectorTo, clip]
```

**Parameters:**

- `rangeFrom`: [Number](../topics/Number.md) - start "from" range
- `rangeTo`: [Number](../topics/Number.md) - end "to" range
- `rangeValue`: [Number](../topics/Number.md) - variable range value
- `vectorFrom`: [Vector3D](../topics/Vector3D.md) - start "from" vector
- `vectorTo`: [Vector3D](../topics/Vector3D.md) - end "to" vector
- `clip`: [Boolean](../topics/Boolean.md) - (Optional, default [false](../commands/false.md)) if [true](../commands/true.md), range value will be clipped to stay within "from" - "to" range

**Returns:** [Vector3D](../topics/Vector3D.md) - interpolated vector

## Examples

### Example 1

```sqf
vectorLinearConversion [0, 1, 0.5, [0,0,0], [25,50,100], false];    // [12.5,25,50]
```

### Example 2

```sqf
vectorLinearConversion [0, 1, 100, [0,0,0], [25,50,100], true];    // [25,50,100]
```

### Example 3

```sqf
vectorLinearConversion [0, 1, 100, [0,0,0], [25,50,100], false];    // [2500,5000,10000]
```

## See also

[linearConversion](../commands/linearConversion.md) · [bezierInterpolation](../commands/bezierInterpolation.md) · [matrixMultiply](../commands/matrixMultiply.md) · [matrixTranspose](../commands/matrixTranspose.md)

<sub>Source: [BI Community Wiki — vectorLinearConversion](https://community.bistudio.com/wiki/vectorLinearConversion) (revision 377894).</sub>
