W3C home > Mailing lists > Public > www-svg@w3.org > September 2008

Re: Elliptical paths

From: Frédéric WANG <fred.wang@free.fr>
Date: Mon, 01 Sep 2008 08:15:49 +0200
Message-ID: <48BB8895.8040400@free.fr>
To: brutfood@yahoo.com
CC: www-svg@w3.org


> 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).
>
>   
Simply follow steps 1, 2, 3 of  
http://www.w3.org/TR/SVG/implnote.html#ArcConversionEndpointToCenter
The center is (cx, cy).

HTH

Fred
>
>
>
>
>
>       Win a MacBook Air or iPod touch with Yahoo!7. http://au.docs..yahoo.com/homepageset
>
>
>
>
>   
Received on Monday, 1 September 2008 06:09:56 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:40 GMT