cocoaTouch/otherSrc/CGPointUtils.h
author mario.liebisch
Wed, 16 Jun 2010 13:48:10 +0200
changeset 3506 0523e68f1972
parent 3385 361bd29293f4
permissions -rw-r--r--
General: * Added new themes: Art, Brick, Stage * Added new background music: Art, Brick, Castle, Compost (former Nature), Desert, Olympics, Nature

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