diff options
| author | Code WvS <code-wvs@quantentunnel.de> | 2015-03-22 18:04:10 +0100 |
|---|---|---|
| committer | Code WvS <code-wvs@quantentunnel.de> | 2015-03-22 18:04:10 +0100 |
| commit | 8cbb9efd39b0c21c1a7237cee39b52d3dba587f4 (patch) | |
| tree | 257537417b08ce9455cf07555f8254f800b6a1b2 /threads.js | |
| parent | e05bec7d42f3a85f50f4863cc7d74c2e40edd3c0 (diff) | |
| download | snap-yow-8cbb9efd39b0c21c1a7237cee39b52d3dba587f4.tar.gz snap-yow-8cbb9efd39b0c21c1a7237cee39b52d3dba587f4.zip | |
add distanceFromTo block
Diffstat (limited to 'threads.js')
| -rw-r--r-- | threads.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -2509,6 +2509,12 @@ Process.prototype.reportDistanceTo = function (name) { return 0; }; +Process.prototype.reportDistanceFromTo = function (lon1, lat1, lon2, lat2) { + var thisPoint = L.latLng(lat1, lon1), + thatPoint = L.latLng(lat2, lon2); + return thisPoint.distanceTo(thatPoint); +}; + Process.prototype.reportAttributeOf = function (attribute, name) { var thisObj = this.blockReceiver(), thatObj, |
