<< 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).

dx :

node PoI x-coordinate.

dy :

node PoI y-coordinate.

D :

Euclidean distance.

Description

NARVAL_M_DistanceNPoi performs the Euclidean distance between the current position of a node (nx,ny) and its destination (dx,dy) (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

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact

<< NARVAL_M_DijkstraWeight NARVAL NARVAL_M_Graph2Plot >>