I am considering the case of x-axis-rotation = 0. The equations for the start and end points are:
x1 = cx + rx * cos (StartAngle)
y1 = cy + ry * sin (StartAngle)
x2 = cx + rx * cos (EndAngle)
y2 = cy + ry * sin (EndAngle)
The exclusion of angles from pairs of equations gives:
gu ^ 2 * (x1-cx) ^ 2 + gx ^ 2 * (y1-su) ^ 2 = gx ^ 2 * gu ^ 2
gy ^ 2 * (x2-cx) ^ 2 + gx ^ 2 * (y2-su) ^ 2 = gx ^ 2 * gu ^ 2
This system of equations can be analytically solved for (cx, cy) by hand or using mathematical packages (Maple, Mathematica, etc.). There are two solutions to the quadratic equation (due to the combination of a large arc and a flag).
source share