Re: sine wave
Re: sine wave
- Subject: Re: sine wave
- From: "Glenn L. Austin" <email@hidden>
- Date: Sun, 31 Jan 2010 18:59:03 -0800
On Jan 31, 2010, at 6:46 PM, Graham Cox wrote:
>
> On 01/02/2010, at 1:22 PM, Chunk 1978 wrote:
>
>> i'm searching for a general algorithm to produce a cartesian sine wave
>> that outputs numbers, which i suppose would be based on maximum
>> distance (range) from Y while using a timer.
>
> v = range * sin(t)
>
> --Graham
Just remember that the argument to sin() must be in radians. To convert degrees to radians, radians = degrees * kPI / 180.0;
--
Glenn L. Austin, Computer Wizard and Race Car Driver <><
<http://www.austin-soft.com>
_______________________________________________
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