Re: [Math] sin(), cos() not working? What special magic must I use to summon their powers?
Re: [Math] sin(), cos() not working? What special magic must I use to summon their powers?
- Subject: Re: [Math] sin(), cos() not working? What special magic must I use to summon their powers?
- From: Andrew Farmer <email@hidden>
- Date: Tue, 30 Sep 2008 17:09:36 -0700
On 30 Sep 08, at 16:43, Michael Robinson wrote:
retVal = lround(size*(1-cos(asin((double)i/(double)size))));
if(retVal > 0 ) return retVal;
Note that cos(asin(x)) = sqrt(1-x*x).
HTH.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden