Generate the displacement of a node to a Point of Interest for a VANET around a rectangle.
[nx,ny,dx,dy,id,d,v,tn]=MobilityNodeRWPoint(nx,ny,dx,dy,id,Px,Py,d,v,tn,tnmax,vm,L)
node x-coordinate (current position).
node y-coordinate (current position).
node PoI x-coordinate.
node PoI y-coordinate.
PoI index.
next PoI x-coordinate.
next PoI x-coordinate.
distance metric (current position to PoI).
node velocity.
breaktime between two displacements (PoI-old to PoI-new).
maximum value of the breaktime parameter.
maximum value of the velocity parameter.
network square area side.
MobilityNodeRWPoint generates the displacement of a node currently located in (nx,ny) to the Point of Interest (dx,dy) distant of d, at a speed equal to v for a VANET around a rectangle.
When the node reaches the PoI, it stays there for a time duration of tn. Afterwards it selects a new PoI, a new velocity, and a new breaktime for the new PoI.