---
name: "BIS_fnc_distance2Dsqr"
type: function
status: deprecated
replaced_by: ["distanceSqr"]
groups: ["Geometry"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_distance2Dsqr
revid: 347966
updated: 2023-11-08T08:53:39Z
---

# BIS_fnc_distance2Dsqr

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

> [!WARNING]
> This function is deprecated. Use [distanceSqr](../commands/distanceSqr.md) instead.

## Description

Returns the SQUARE of the distance between the two objects or positions "as the crow flies" (ignoring elevation).

> [!NOTE]
> This function became obsolete with the introduction of [distanceSqr](../commands/distanceSqr.md).

## Syntax

```sqf
[pointA, pointB] call BIS_fnc_distance2Dsqr
```

**Parameters:**

- `pointA`: [Object](../topics/Object.md) or [Position](../topics/Position.md)
- `pointB`: [Object](../topics/Object.md) or [Position](../topics/Position.md)

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

## Examples

### Example 1

```sqf
[player, soldier_1] call BIS_fnc_distance2Dsqr;
```

### Example 2

```sqf
[[100,100,0], [0,0,0]] call BIS_fnc_distance2Dsqr;
```

## See also

[BIS_fnc_distance2D](../functions/BIS_fnc_distance2D.md) · [distance2D](../commands/distance2D.md) · [distance](../commands/distance.md)

<sub>Source: [BI Community Wiki — BIS fnc distance2Dsqr](https://community.bistudio.com/wiki/BIS_fnc_distance2Dsqr) (revision 347966).</sub>
