author | koda |
Wed, 23 Jun 2010 22:03:56 +0200 | |
changeset 3547 | 02875b1145b7 |
parent 3546 | ccf4854df294 |
child 3551 | d4de36b3801a |
permissions | -rw-r--r-- |
/* * CGPointUtils.h * PinchMe * * Created by Jeff LaMarche on 8/2/08. * Copyright 2008 __MyCompanyName__. All rights reserved. * */ #import <CoreGraphics/CoreGraphics.h> #define degreesToRadian(x) (M_PI * x / 180.0) #define radiansToDegrees(x) (180.0 * x / M_PI) CGFloat distanceBetweenPoints (CGPoint first, CGPoint second); CGFloat angleBetweenPoints(CGPoint first, CGPoint second); CGFloat angleBetweenLines(CGPoint line1Start, CGPoint line1End, CGPoint line2Start, CGPoint lin2End);