having the start- & end point coordinates plus the radius allows you to calculate the center point coordinates. Then you are able to use the method AddByCenterStartEnd. The only problem is that there exist 2 possible solutions for the center point, except you have an arc angle of exactly 180 degree.
You get the (2) possible center points by solving the system of equations given below for xc and yc:
(xs - xc)^2 + (ys - yc)^2 = r^2
(xe - xc)^2 + (ye - yc)^2 = r^2
with xs, ys as the given start point coordinates
with xe, ye as the given end point coordinates
with r as the given radius
with xc, yc as the searched center point coordinates
I hope this helps ...
P.S. The mathematical expressions of the solutions for xc and yc are quite huge, so i omitted to print them here.
Posted by: Wolfgang Kunert Post date: 12/15/2010 1:50:03 AM