cocoaTouch/otherSrc/CGPointUtils.h
changeset 3385 361bd29293f4
parent 2678 334016e8d895
equal deleted inserted replaced
3384:7eb4707d43f0 3385:361bd29293f4
     7  *
     7  *
     8  */
     8  */
     9 
     9 
    10 #import <CoreGraphics/CoreGraphics.h>
    10 #import <CoreGraphics/CoreGraphics.h>
    11 
    11 
       
    12 #define degreesToRadian(x) (M_PI * x / 180.0)
       
    13 #define radiansToDegrees(x) (180.0 * x / M_PI)
       
    14 
    12 CGFloat distanceBetweenPoints (CGPoint first, CGPoint second);
    15 CGFloat distanceBetweenPoints (CGPoint first, CGPoint second);
    13 CGFloat angleBetweenPoints(CGPoint first, CGPoint second);
    16 CGFloat angleBetweenPoints(CGPoint first, CGPoint second);
    14 CGFloat angleBetweenLines(CGPoint line1Start, CGPoint line1End, CGPoint line2Start, CGPoint lin2End);
    17 CGFloat angleBetweenLines(CGPoint line1Start, CGPoint line1End, CGPoint line2Start, CGPoint lin2End);