From 3e58dfa573be0ea6acb380ffa98ca8d7db6752a5 Mon Sep 17 00:00:00 2001 From: Code WvS Date: Sat, 28 Feb 2015 15:31:31 +0100 Subject: typo --- objects.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'objects.js') diff --git a/objects.js b/objects.js index 7d1b995..0f0514d 100644 --- a/objects.js +++ b/objects.js @@ -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); -- cgit v1.3.1