We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68b29a7 commit 4f22cabCopy full SHA for 4f22cab
rtree2d-core/shared/src/main/scala/com/github/plokhotnyuk/rtree2d/core/Geometry.scala
@@ -212,7 +212,7 @@ trait Spherical {
212
if (normalize(minLon - lon) <= normalize(lon - maxLon)) minLon
213
else maxLon
214
val latCosPerLonDeltaCos = latCos * cos((closestLon - lon) * radPerDegree)
215
- val extremumLat = atan(latSin / latCosPerLonDeltaCos)
+ val extremumLat = atan(latSin / latCosPerLonDeltaCos) * degreePerRad
216
val normalizedDistanceCos = max(
217
latSin * minLatSin + latCosPerLonDeltaCos * minLatCos,
218
latSin * maxLatSin + latCosPerLonDeltaCos * maxLatCos)
0 commit comments