Skip to content

Commit

Permalink
fixed angle
Browse files Browse the repository at this point in the history
  • Loading branch information
einaros committed Oct 7, 2011
1 parent 9a6ba2b commit 8e960a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/trig-paperjs.html
Expand Up @@ -86,7 +86,7 @@
// Update marker position on the circle
var a = (angle++) / 180 * Math.PI;
marker.position.x = circleCenterPt.x + Math.cos(a) * circleRadius;
marker.position.y = circleCenterPt.y + Math.sin(a) * circleRadius;
marker.position.y = circleCenterPt.y - Math.sin(a) * circleRadius;

// Update degree and (rounded) radian angle text
angleDegText.content = (angle % 360) + '°';
Expand Down

0 comments on commit 8e960a3

Please sign in to comment.