Remove use of toDegrees/toRadians util functions
Instead of goog.math.toRadians and goog.math.toDegrees, we now use our own implementations of these basic conversion functions.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
goog.provide('ol.RotationConstraint');
|
||||
goog.provide('ol.RotationConstraintType');
|
||||
|
||||
goog.require('goog.math');
|
||||
goog.require('ol.math');
|
||||
|
||||
|
||||
/**
|
||||
@@ -66,7 +66,7 @@ ol.RotationConstraint.createSnapToN = function(n) {
|
||||
* @return {ol.RotationConstraintType} Rotation constraint.
|
||||
*/
|
||||
ol.RotationConstraint.createSnapToZero = function(opt_tolerance) {
|
||||
var tolerance = opt_tolerance || goog.math.toRadians(5);
|
||||
var tolerance = opt_tolerance || ol.math.toRadians(5);
|
||||
return (
|
||||
/**
|
||||
* @param {number|undefined} rotation Rotation.
|
||||
|
||||
Reference in New Issue
Block a user