SHARE
TWEET

Untitled

marvk Oct 11th, 2015 116 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private double dist(Stop s) {
  2.         double x = (s.lon - this.lon) * Math.cos((this.lat+s.lat)/2);
  3.         double y = s.lat - this.lat;
  4.         return Math.sqrt(x*x+y*y) * 6371.0;
  5. }
RAW Paste Data
Top