Saturday, July 23, 2011

Distance between 2 points

CGPoint first= CGPointMake(50,50);
CGPoint second= CGPointMake(200,200);
float maxDistance= ccpDistance(first, second);

No comments: