maartenrein / leebrimelow

Automatically exported from code.google.com/p/leebrimelow
0 stars 0 forks source link

Wedge.as Problem #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Given a startAngle instead of 0
2. The pie will begin at the negative startAngle
3. The curve will also distort

I have removed the minus before angle at line 43 of Wedge.as and the
problem is gone.

Original l43: ay = sy + Math.sin(-angle) * radius;
My update: ay = sy + Math.sin(angle) * radius;

Original issue reported on code.google.com by jammind on 7 Apr 2009 at 8:58

GoogleCodeExporter commented 8 years ago
Caught the same thing. Remove the negative and it works great.

Thanks for the code Lee.

Original comment by cade...@gmail.com on 23 Aug 2009 at 11:53