float x = CGRectGetWidth(self.view.frame);
float p1x = x*.5f;
float p1y = 100;
float p2x = 60;
float p2y = 250;
float p3x = x-60;
float p3y = 250;
float p4x = x-60;
float p4y = 260;
double distance1 = sqrt(pow((p1x - p4x), 2) + pow((p1y - p4y), 2));
double distance2 = sqrt(pow((p2x - p4x), 2) + pow((p2y - p4y), 2));
double distance3 = sqrt(pow((p3x - p4x), 2) + pow((p3y - p4y), 2));