Elliptical paths

An SVG elliptical path is defined by two points on the ellipse, (xlast,ylast), (x,y) - the size rx,ry of the ellipse are known, and its rotation r.

>From this information, how do I derive the centre of the ellipse?

-(I tried to work through the maths but got stuck).

(There are two possible solutions.  Additional parameters in the elliptical path description select which centre and which arc to draw).

Received on Monday, 1 September 2008 01:01:32 UTC