Remove unused sphere.maximumLatitude() method
This commit is contained in:
@@ -126,20 +126,6 @@ ol.Sphere.prototype.interpolate = function(c1, c2, fraction) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the maximum latitude of the great circle defined by bearing and
|
|
||||||
* latitude.
|
|
||||||
*
|
|
||||||
* @param {number} bearing Bearing.
|
|
||||||
* @param {number} latitude Latitude.
|
|
||||||
* @return {number} Maximum latitude.
|
|
||||||
*/
|
|
||||||
ol.Sphere.prototype.maximumLatitude = function(bearing, latitude) {
|
|
||||||
return Math.cos(Math.abs(Math.sin(goog.math.toRadians(bearing)) *
|
|
||||||
Math.cos(goog.math.toRadians(latitude))));
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the midpoint between c1 and c2.
|
* Returns the midpoint between c1 and c2.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
// See http://www.movable-type.co.uk/scripts/latlong.html
|
// See http://www.movable-type.co.uk/scripts/latlong.html
|
||||||
// FIXME add tests for maximumLatitude
|
|
||||||
// FIXME add tests for offset
|
// FIXME add tests for offset
|
||||||
|
|
||||||
goog.provide('ol.test.Sphere');
|
goog.provide('ol.test.Sphere');
|
||||||
|
|||||||
Reference in New Issue
Block a user