<< NL_M_LocalityHT NL_M: Mobility NL_M_NodeDisplayUpdate >>

NARVAL >> NL_M: Mobility > NL_M_NodeBS

NL_M_NodeBS

Generate the displacement of a node (Boundless Simulation Area).

Calling Sequence

[X,Y] = NL_M_NodeBS(X,Y,A,V,L)

Arguments

X :

Node x-coordinate (current position).

Y :

Node y-coordinate (current position).

A :

Node angle (current angle).

V :

Node speed.

L :

Area side.

Description

NL_M_NodeBS generates the displacement of the node currently located in (X,Y) in respect with the boundless simulation area mobility model. If a node reaches the boundary of a simulation area then it continues travelling and reappears from the opposite side of the area.

Examples

nx=100;//initial node x-coordinate
ny=10;//initial node y-coordinate
a=-%pi/6;//initial angle
v=50;
L=1000;
[nx ny]//original values
[nx,ny]=NL_M_NodeBS(nx,ny,a,v,L)//application of NL_M_NodeBS

Report an issue
<< NL_M_LocalityHT NL_M: Mobility NL_M_NodeDisplayUpdate >>