Skip to content

Commit

Permalink
Update geomUtils.js
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotstokes committed Mar 11, 2014
1 parent 25bb3d1 commit 13af8dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/geomUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
if (!Number.prototype.toRad) {
Number.prototype.toRad = function() {
return this * Math.PI / 180;
}
};

}

Expand Down Expand Up @@ -42,4 +42,4 @@ exports.calculateMidpoint = function(lat1, lon1, lat2, lon2) {
var lat3 = Math.atan2(Math.sin(lat1) + Math.sin(lat2),
Math.sqrt((Math.cos(lat1) + Bx) * (Math.cos(lat1) + Bx) + By * By));
var lon3 = lon1 + Math.atan2(By, Math.cos(lat1) + Bx);
}
};

0 comments on commit 13af8dc

Please sign in to comment.