Small improvement to the pi approximation (#1292)

This commit is contained in:
Robert-0410 2024-10-08 03:10:34 -07:00 committed by GitHub
parent 921f5eb880
commit 3473ef343a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,6 +14,7 @@ import kotlin.math.cos
import kotlin.math.log2
import kotlin.math.pow
import kotlin.math.sin
import kotlin.math.PI
/*******************************************************************************
* Revive some of my old Gaggle source code...
@ -181,7 +182,7 @@ fun latLongToMeter(
lat_b: Double,
lng_b: Double
): Double {
val pk = (180 / 3.14169)
val pk = (180 / PI)
val a1 = lat_a / pk
val a2 = lng_a / pk
val b1 = lat_b / pk