mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
Small improvement to the pi approximation (#1292)
This commit is contained in:
parent
921f5eb880
commit
3473ef343a
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue