Closed vanderlee closed 7 years ago
I noticed that as well and am currently converting radians and degrees back and forth. Maybe it's worth implementing something like a unit
option?
Hmmm. I'll get this fixed and push it out as part of the March 1st 1.1 release.
In my code I added the custom method for easy converting to degrees like this:
Math.degrees = function(radians) {
return radians * 180 / Math.PI;
};
and when I get the value from angle radians with Math.degrees( ui.angle.current )
hth, cheers
I'm adding both degrees
and radians
functions to the API. Both will function like the current angle
function, for their respective unit.
Will the angle
function be changed to work according to the readme (degrees) or remain as currently implemented (radians)?
It will be degrees, because people don't think in radians :-)
Just making sure... this was not implemented on the current release available to download, right?
Fixed.
The current implementation on CDN has an
angle
option that uses radians. Not degrees, as mentioned in the readme.