project_files/HedgewarsMobile/Classes/CGPointUtils.c
changeset 3922 44804043b691
parent 3547 02875b1145b7
child 4476 4bf74e158f44
equal deleted inserted replaced
3921:022dfe1431b7 3922:44804043b691
     6  *  Copyright 2008 __MyCompanyName__. All rights reserved.
     6  *  Copyright 2008 __MyCompanyName__. All rights reserved.
     7  *
     7  *
     8  */
     8  */
     9 
     9 
    10 #include "CGPointUtils.h"
    10 #include "CGPointUtils.h"
    11 #include <math.h>
    11 #include "math.h"
    12 
    12 
    13 
    13 
    14 CGFloat distanceBetweenPoints (CGPoint first, CGPoint second) {
    14 CGFloat distanceBetweenPoints (CGPoint first, CGPoint second) {
    15     CGFloat deltaX = second.x - first.x;
    15     CGFloat deltaX = second.x - first.x;
    16     CGFloat deltaY = second.y - first.y;
    16     CGFloat deltaY = second.y - first.y;