Skip to content
Permalink
Browse files

Minor improvements

  • Loading branch information...
jpickup committed May 2, 2019
1 parent 7a0aec9 commit bc94ae9095a9d2fa584706624cd2be37ca05069a
Showing with 2 additions and 1 deletion.
  1. +2 −1 source/CPData.mc
@@ -7,7 +7,7 @@ class CPData
var rlat;
var rlon;
var cosrlat;
var dist;
var dist; // Distance from previous checkpoint to this one
var cutoff;

const DMMEANRADIUS = 6371000.0;
@@ -36,6 +36,7 @@ class CPData
{
var latdiff = (rlat - other_rlat).abs() * DMMEANRADIUS;
var londiff = (rlon - other_rlon).abs() * DMMEANRADIUS * cosrlat;
// System.println(id + ": LatDiff: " + latdiff + " / LonDiff: " + londiff);
return (latdiff < delta) && (londiff < delta);
}

0 comments on commit bc94ae9

Please sign in to comment.
You can’t perform that action at this time.