On Aug 25, 8:51 am, sgiddings <
mr.s.giddi...@gmail.com> wrote:
> Hi Larry and Rossko,
>
> Ok, I have the solution, which I will share with you.
> I cannot claim any credit as it was Chris Veness (of movable-
>
type.co.uk fame) who supplied it.
>
> Firstly to clarify the question -
> The two points are at the same radius from the centre point.
> The arc must extend from the first point and finish at the second
> point.
> The issue of clockwise or counter-clockwise is probably situation
> specific - for myself the direction is counter-clockwise.
>
> Here is his solution as he stated it -
> * find bearing b1 from centre point to point A
> * find bearing b2 from centre point to point B
> * arc[] = point A // initial point in polyline array
> * for (brng = b1; brng <= b2; brng += incr)
> * {
> * p = new point dist r, bearing brng from centre point
> * arc[] = p // add this point to polyline array
> * }
> * draw(arc)
>
> I was able to implement this pseudo code to my specific needs.