---
name: "BIS_fnc_richCurve_edenComputeNearestSegment"
type: function
status: ok
groups: ["Curve3DEN"]
arma3_since: "1.78"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_richCurve_edenComputeNearestSegment
revid: 279007
updated: 2021-06-13T21:47:42Z
---

# BIS_fnc_richCurve_edenComputeNearestSegment

*Function · Curve3DEN · Arma 3 v1.78*

## Description

Computes the nearest baked segment from given 3D position

## Syntax

```sqf
[] call BIS_fnc_richCurve_edenComputeNearestSegment
```

**Parameters:**

- `param0` — 0: Object - The curve

**Returns:** Array - The start and end vectors of segment

## Function header

The comment at the top of the function's file in the game; this page's description, params, returns come from it.

```sqf
/*
Author: Nelson Duarte <@Nelson_G_Duarte>

Description:
Computes the nearest baked segment from given 3D position

Parameter(s):
_this select 0: Object - The curve

Returns:
Array - The start and end vectors of segment
*/
```

<sub>Source: [BI Community Wiki — BIS fnc richCurve edenComputeNearestSegment](https://community.bistudio.com/wiki/BIS_fnc_richCurve_edenComputeNearestSegment) (revision 279007).</sub>
