diff options
| author | Code WvS <code-wvs@quantentunnel.de> | 2015-02-28 15:31:31 +0100 |
|---|---|---|
| committer | Code WvS <code-wvs@quantentunnel.de> | 2015-02-28 15:31:31 +0100 |
| commit | 3e58dfa573be0ea6acb380ffa98ca8d7db6752a5 (patch) | |
| tree | 0159d6fc1b061d8b843327f52c1c30cea4541c9c /objects.js | |
| parent | aa4ee2427ce91d52abd18858a4793e5973934e2d (diff) | |
| download | snap-yow-3e58dfa573be0ea6acb380ffa98ca8d7db6752a5.tar.gz snap-yow-3e58dfa573be0ea6acb380ffa98ca8d7db6752a5.zip | |
typo
Diffstat (limited to 'objects.js')
| -rw-r--r-- | objects.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3358,7 +3358,7 @@ SpriteMorph.prototype.forward = function (meters) { var diffLat, diffLon; diffLat = Math.cos(radians(this.heading)) * (1 / 110.54 * kilometers); diffLon = Math.sin(radians(this.heading)) - * (1 / (111.32 * Math.cos(radians(this.xPosition()))) * kilometers); + * (1 / (111.32 * Math.cos(radians(this.yPosition()))) * kilometers); // TODO: "0 - ..." – why does this work? The formula above looks wrong ;-) var diffPoint = new Point(diffLon, 0 - diffLat); |
