From d389e0fd3fae374eb3774a3dc2af004a28a439a9 Mon Sep 17 00:00:00 2001 From: Louis Dalibard Date: Tue, 18 Feb 2025 17:35:45 +0100 Subject: [PATCH] Update render.go --- render/render.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/render/render.go b/render/render.go index aa59e0f..5bdc336 100644 --- a/render/render.go +++ b/render/render.go @@ -118,7 +118,7 @@ func DrawCircle(g *globe.Globe, lat, lon float64, radius float64, color globe.Op pointLats := []float64{} pointLons := []float64{} for i := 0; i < config.Config.RealtimeVisCircleResolution; i++ { - gData := wgs84.Direct(lat, lon, float64(i)/float64(config.Config.RealtimeVisCircleResolution)*360., radius/360*math.Pi*wgs84.EquatorialRadius()) + gData := wgs84.Direct(lat, lon, float64(i)/float64(config.Config.RealtimeVisCircleResolution)*360., radius/180*math.Pi*wgs84.EquatorialRadius()) pointLats = append(pointLats, gData.Lat2) pointLons = append(pointLons, gData.Lon2) }