Hi All, Our website moved to a new URL. Please bookmark the new link: https://ns2bloggers.blogspot.com/

Wednesday 21 May 2014

DISTANCE CALCULATION BETWEEN NODES

Lot of people mailed us about how to calculate distance between neighbor nodes or between source and destination?? Now we added some scripts in front end program i.e in tcl script to find out distance between source and destination or with neighbor nodes. 

We used distance calculation equation to find out the distance between two nodes.If (x1,y1) be the position of first node and (x2,y2) be the position of second node.Then,distance (d) between two nodes is given as;

d=[ (x2-x1)2+(y2-y1)]1/2

For Script ,Click here.


Screen Shot :



5 comments :

  1. We used distance calculation equation to find out the distance between two nodes.If (x1,y1) be the position of first node and Unites States city distances (x2,y2) be the position of second node.

    ReplyDelete
  2. Thank You so much :) This really helps me ...

    ReplyDelete
  3. How to transmit the information of all node's position and speed to a single node and give ranking to all the nodes according to their position

    ReplyDelete
  4. Thank you for influencing so many readers with your great information. Well written content like this restores my faith in quality writing. Your article has sparked a lot of thought for me. I share your views. Distance calculator

    ReplyDelete