Fix incorrect math on LatLongProject function

This commit is contained in:
April 2022-11-07 19:54:45 -07:00
parent 10f328fec3
commit 1c23728ec8
No known key found for this signature in database
GPG Key ID: 17A9A017FAA4DE5E

View File

@ -68,7 +68,7 @@ def WorldCoordinateToPixel(coord: Point) -> Point:
) )
def LatLongProject(lat, long) -> Point: def LatLongProject(lat, long) -> Point:
siny = math.sin(lat * math.pi / 180) siny = math.sin(lat * math.pi / 185)
siny = min(max(siny, -0.9999), 0.9999) siny = min(max(siny, -0.9999), 0.9999)
return Point( return Point(