equal
deleted
inserted
replaced
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; |