<< NARVAL_M_DijkstraWeight NARVAL NARVAL_M_Graph2Plot >>

NARVAL >> NARVAL > NARVAL_M_DistanceNPoi

NARVAL_M_DistanceNPoi

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

Calling Sequence

[d] = NARVAL_M_DistanceNPoi(nx,ny,dx,dy)

Parameters

nx :

node x-coordinate (current position).

ny :

node y-coordinate (current position).

px :

node PoI x-coordinate.

py :

node PoI y-coordinate.

d :

Euclidean distance.

Description

NARVAL_M_DistanceNPoi performs the Euclidean distance d between the current position of the node n located in (nx,ny) and its destination (px,py) (Point of Interest).

Examples

nx=0;
ny=0;
dx=100;
dy=200;
[d]=NARVAL_M_DistanceNPoi(nx,ny,dx,dy);// application of NARVAL_M_DistanceNPoi
d

Authors

Foued Melakessou

Contact

Dr. Foued Melakessou

Research Associate

Interdisciplinary Centre for Security, Reliability and Trust

Room F106

University of Luxembourg

6, rue Coudenhove Kalergi

L-1359 Luxembourg-Kirchberg

E-mail: foued.melakessou@uni.lu

Tel: (+352) 46 66 44 5346

Home Page


<< NARVAL_M_DijkstraWeight NARVAL NARVAL_M_Graph2Plot >>