Add ol.Ellipsoid#e and #eSquared

This commit is contained in:
Tom Payne
2013-06-12 16:00:19 +02:00
parent 1e9ccab806
commit e0dd15567c

View File

@@ -30,6 +30,18 @@ ol.Ellipsoid = function(a, flattening) {
*/ */
this.b = this.a * (1 - this.flattening); this.b = this.a * (1 - this.flattening);
/**
* @const
* @type {number}
*/
this.eSquared = 2 * flattening - flattening * flattening;
/**
* @const
* @type {number}
*/
this.e = Math.sqrt(this.eSquared);
}; };