mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Clean up Matrix#setToRotation.
This commit is contained in:
parent
d2827e35c6
commit
7087b5476d
1 changed files with 1 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue