cocoaTouch/otherSrc/CGPointUtils.h
author koda
Sat, 01 May 2010 12:53:55 +0000
changeset 3385 361bd29293f4
parent 2678 334016e8d895
permissions -rw-r--r--
add automatic rotation in ipad (landscape only) possible fix for compiling hw under haiku restore randomity in choosing the theme

/*
 *  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);