<< NL_F_DistanceNiNj NL_F: Function NL_F_FindIndexVector >>

NARVAL >> NL_F: Function > NL_F_DistanceSiDj

NL_F_DistanceSiDj

Perform the Euclidean distance between the current position of a node and its destination (Point of Interest).

Calling Sequence

[D] = NL_F_DistanceSiDj(Sx,Sy,Dx,Dy)

Arguments

:

X-coordinate (current position).

:

Y-coordinate (current position).

:

X-coordinate (PoI).

:

Y-coordinate (PoI).

D :

Euclidean distance.

Description

NL_F_DistanceSiDj performs the Euclidean distance D between the current position of the node N located in and its destination (Point of Interest).

Examples

Sx=0;
Sy=0;
Dx=100;
Dy=200;
[D]=NL_F_DistanceSiDj(Sx,Sy,Dx,Dy)//application of NL_F_DistanceSiDj

Report an issue
<< NL_F_DistanceNiNj NL_F: Function NL_F_FindIndexVector >>