Remove unused ol.math-methods

This commit is contained in:
Marc Jansen
2015-10-12 20:02:34 +02:00
parent 1f8ee3a5ae
commit 2f5ccbd54d
2 changed files with 0 additions and 152 deletions

View File

@@ -25,25 +25,6 @@ ol.math.cosh = function(x) {
};
/**
* @param {number} x X.
* @return {number} Hyperbolic cotangent of x.
*/
ol.math.coth = function(x) {
var expMinusTwoX = Math.exp(-2 * x);
return (1 + expMinusTwoX) / (1 - expMinusTwoX);
};
/**
* @param {number} x X.
* @return {number} Hyperbolic cosecant of x.
*/
ol.math.csch = function(x) {
return 2 / (Math.exp(x) - Math.exp(-x));
};
/**
* @param {number} x X.
* @return {number} The smallest power of two greater than or equal to x.
@@ -54,24 +35,6 @@ ol.math.roundUpToPowerOfTwo = function(x) {
};
/**
* @param {number} x X.
* @return {number} Hyperbolic secant of x.
*/
ol.math.sech = function(x) {
return 2 / (Math.exp(x) + Math.exp(-x));
};
/**
* @param {number} x X.
* @return {number} Hyperbolic sine of x.
*/
ol.math.sinh = function(x) {
return (Math.exp(x) - Math.exp(-x)) / 2;
};
/**
* Returns the square of the closest distance between the point (x, y) and the
* line segment (x1, y1) to (x2, y2).
@@ -115,16 +78,6 @@ ol.math.squaredDistance = function(x1, y1, x2, y2) {
};
/**
* @param {number} x X.
* @return {number} Hyperbolic tangent of x.
*/
ol.math.tanh = function(x) {
var expMinusTwoX = Math.exp(-2 * x);
return (1 - expMinusTwoX) / (1 + expMinusTwoX);
};
/**
* Converts radians to to degrees.
*