From d16f76f0da8659f0ecbf43146be9654ec00778d9 Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 1 Sep 2012 05:51:35 +0200 Subject: [PATCH] add constant Ox.EARTH_SURFACE --- source/Ox/js/Constants.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/Ox/js/Constants.js b/source/Ox/js/Constants.js index a33b2790..8e8ac77f 100644 --- a/source/Ox/js/Constants.js +++ b/source/Ox/js/Constants.js @@ -14,7 +14,9 @@ Ox.EARTH_RADIUS Radius of the earth in meters */ Ox.EARTH_RADIUS = 6378137; //@ Ox.EARTH_CIRCUMFERENCE Circumference of the earth in meters -Ox.EARTH_CIRCUMFERENCE = Ox.EARTH_RADIUS * 2 * Math.PI; +Ox.EARTH_CIRCUMFERENCE = 2 * Math.PI * Ox.EARTH_RADIUS; +//@ Ox.EARTH_SURFACE Surface of the earth in square meters +Ox.EARTH_SURFACE = 4 * Math.PI * Math.pow(Ox.EARTH_RADIUS, 2); //@ Ox.HTML_ENTITIES HTML entities for ... (FIXME) Ox.HTML_ENTITIES = { '"': '"', '&': '&', "'": ''', '<': '<', '>': '>'