project_files/HedgewarsMobile/Classes/CGPointUtils.h
changeset 4476 4bf74e158f44
parent 3996 eb549fd864a5
child 4976 088d40d8aba2
equal deleted inserted replaced
4474:499748f6e80f 4476:4bf74e158f44
    19 #define HWYZ(x) (int)(screen.size.width-x)
    19 #define HWYZ(x) (int)(screen.size.width-x)
    20 
    20 
    21 CGFloat distanceBetweenPoints (CGPoint first, CGPoint second);
    21 CGFloat distanceBetweenPoints (CGPoint first, CGPoint second);
    22 CGFloat angleBetweenPoints(CGPoint first, CGPoint second);
    22 CGFloat angleBetweenPoints(CGPoint first, CGPoint second);
    23 CGFloat angleBetweenLines(CGPoint line1Start, CGPoint line1End, CGPoint line2Start, CGPoint line2End);
    23 CGFloat angleBetweenLines(CGPoint line1Start, CGPoint line1End, CGPoint line2Start, CGPoint line2End);
       
    24 
       
    25 CGFloat CGPointDot(CGPoint a, CGPoint b);
       
    26 CGFloat CGPointLen(CGPoint a);
       
    27 CGPoint CGPointSub(CGPoint a, CGPoint b);
       
    28 CGFloat CGPointDist(CGPoint a, CGPoint b);
       
    29 CGPoint CGPointNorm(CGPoint a);