j2000-w84

This commit is contained in:
nuknal
2024-05-21 11:48:10 +08:00
parent c108f0337b
commit dd23760dbb
6 changed files with 141 additions and 36 deletions

9
calculator/const.go Normal file
View File

@@ -0,0 +1,9 @@
package calculator
// WGS84 ellipsoid constants
const (
a = 6378137.0 // semi-major axis in meters
f = 1 / 298.257223563 // flattening
e2 = 2*f - f*f // square of eccentricity
J2000Epoch = 2451545.0 // Julian date of J2000 epoch
)