project_files/HedgewarsMobile/Classes/otherSrc/CGPointUtils.h
changeset 3546 ccf4854df294
parent 3545 b07ee704f35d
child 3547 02875b1145b7
equal deleted inserted replaced
3545:b07ee704f35d 3546:ccf4854df294
     1 /*
       
     2  *  CGPointUtils.h
       
     3  *  PinchMe
       
     4  *
       
     5  *  Created by Jeff LaMarche on 8/2/08.
       
     6  *  Copyright 2008 __MyCompanyName__. All rights reserved.
       
     7  *
       
     8  */
       
     9 
       
    10 #import <CoreGraphics/CoreGraphics.h>
       
    11 
       
    12 #define degreesToRadian(x) (M_PI * x / 180.0)
       
    13 #define radiansToDegrees(x) (180.0 * x / M_PI)
       
    14 
       
    15 CGFloat distanceBetweenPoints (CGPoint first, CGPoint second);
       
    16 CGFloat angleBetweenPoints(CGPoint first, CGPoint second);
       
    17 CGFloat angleBetweenLines(CGPoint line1Start, CGPoint line1End, CGPoint line2Start, CGPoint lin2End);