Clean up Matrix#setToRotation.

This commit is contained in:
Jonathan Puckey 2011-05-31 16:19:43 +02:00
parent d2827e35c6
commit 7087b5476d

View file

@ -502,7 +502,7 @@ var Matrix = this.Matrix = Base.extend({
*/
setToRotation: function(angle, center) {
center = Point.read(arguments, 1);
angle = angle * Math.PI / 180.0;
angle = angle * Math.PI / 180;
var x = center.x,
y = center.y,
cos = Math.cos(angle),