int height = Convert.ToInt16( Math.Abs(p1.Y - p2.Y));
int width=Convert.ToInt16( Math.Abs(p1.X - p2.X));
int total = height ;
PointF[] CurrP = new PointF[total];
double R = instance / 2.0f + height / 3.0f;
for (int i = 0; i < total; i++)
{
float x = p1.X +(width/(total+.01f))*i;
float y = p1.Y + (float)Math.Sqrt(R * R - x * x);
PointF pch= new PointF(x, y);
CurrP[i] = pch;