Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

Graves Robber
($1.99)

African Adventure
($0.99)

iTazer
($0.99)

ArtStudio
($3.99)

Pigs Vs Wolves
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 12-08-2008, 05:03 PM   #13 (permalink)
cmezak
Registered Member
 
cmezak's Avatar
 
Join Date: Jul 2008
Posts: 192
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
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 23,789
Threads: 38,566
Posts: 169,347
Top Poster: smasher (2,544)
Welcome to our newest member, flan344
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:40 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.