author | koda |
Sat, 19 Jun 2010 00:48:47 +0200 | |
changeset 3522 | 156c04c6a3d8 |
parent 3514 | 59dbd31e9953 |
permissions | -rw-r--r-- |
2678
334016e8d895
injection of custom code in SDL for iPhone in order to implement our frontend
koda
parents:
diff
changeset
|
1 |
/* |
334016e8d895
injection of custom code in SDL for iPhone in order to implement our frontend
koda
parents:
diff
changeset
|
2 |
* CGPointUtils.h |
334016e8d895
injection of custom code in SDL for iPhone in order to implement our frontend
koda
parents:
diff
changeset
|
3 |
* PinchMe |
334016e8d895
injection of custom code in SDL for iPhone in order to implement our frontend
koda
parents:
diff
changeset
|
4 |
* |
334016e8d895
injection of custom code in SDL for iPhone in order to implement our frontend
koda
parents:
diff
changeset
|
5 |
* Created by Jeff LaMarche on 8/2/08. |
334016e8d895
injection of custom code in SDL for iPhone in order to implement our frontend
koda
parents:
diff
changeset
|
6 |
* Copyright 2008 __MyCompanyName__. All rights reserved. |
334016e8d895
injection of custom code in SDL for iPhone in order to implement our frontend
koda
parents:
diff
changeset
|
7 |
* |
334016e8d895
injection of custom code in SDL for iPhone in order to implement our frontend
koda
parents:
diff
changeset
|
8 |
*/ |
334016e8d895
injection of custom code in SDL for iPhone in order to implement our frontend
koda
parents:
diff
changeset
|
9 |
|
334016e8d895
injection of custom code in SDL for iPhone in order to implement our frontend
koda
parents:
diff
changeset
|
10 |
#import <CoreGraphics/CoreGraphics.h> |
334016e8d895
injection of custom code in SDL for iPhone in order to implement our frontend
koda
parents:
diff
changeset
|
11 |
|
3385 | 12 |
#define degreesToRadian(x) (M_PI * x / 180.0) |
13 |
#define radiansToDegrees(x) (180.0 * x / M_PI) |
|
14 |
||
2678
334016e8d895
injection of custom code in SDL for iPhone in order to implement our frontend
koda
parents:
diff
changeset
|
15 |
CGFloat distanceBetweenPoints (CGPoint first, CGPoint second); |
334016e8d895
injection of custom code in SDL for iPhone in order to implement our frontend
koda
parents:
diff
changeset
|
16 |
CGFloat angleBetweenPoints(CGPoint first, CGPoint second); |
334016e8d895
injection of custom code in SDL for iPhone in order to implement our frontend
koda
parents:
diff
changeset
|
17 |
CGFloat angleBetweenLines(CGPoint line1Start, CGPoint line1End, CGPoint line2Start, CGPoint lin2End); |