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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to