Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 12-08-2008, 06:03 PM   #13 (permalink)
cmezak
Registered Member
 
cmezak's Avatar
 
Join Date: Jul 2008
Posts: 207
Default

Oh right. That's just something Apple recommends in the documentation on CTM transforms in the quartz2d programming guide. I suggest you check it out, though it didn't clear up all of my questions.

Anyway, the missing function just translates degrees into radians, which are what those methods need. Here it is:

Code:
#include <math.h>
static inline double radians (double degrees) {return degrees * M_PI/180;}
cmezak is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,727
Threads: 89,186
Posts: 380,517
Top Poster: BrianSlick (7,127)
Welcome to our newest member, Dominus
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:36 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.