diff options
author | Keith Packard <keithp@keithp.com> | 2015-07-11 19:10:44 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2015-07-11 19:10:44 -0700 |
commit | b313a5a3d5aba89330c0e20eeac00cc571828953 (patch) | |
tree | 411c7d3da249033f1a1135146b5bd45a5ec59d6b | |
parent | a9bc364ecc69d9085146a39198f0671de164eb2e (diff) |
altoslib: Make earth size constants public
This lets other code share the values.
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | altoslib/AltosGreatCircle.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/altoslib/AltosGreatCircle.java b/altoslib/AltosGreatCircle.java index f64a3662..4f934517 100644 --- a/altoslib/AltosGreatCircle.java +++ b/altoslib/AltosGreatCircle.java @@ -28,8 +28,8 @@ public class AltosGreatCircle implements Cloneable, Serializable { double sqr(double a) { return a * a; } - static final double rad = Math.PI / 180; - static final double earth_radius = 6371.2 * 1000; /* in meters */ + public static final double rad = Math.PI / 180; + public static final double earth_radius = 6371.2 * 1000; /* in meters */ public static final int BEARING_LONG = AltosConvert.BEARING_LONG; public static final int BEARING_SHORT = AltosConvert.BEARING_SHORT; |