

# the round is an ugly fudge because I was get some 'nearly but not quite' # Use pythagorus to find distance to the centre: # find the (square of) the length of the line am: If sweep and largearc or not ( sweep or largearc):Īm_perp_vec = matrix(,]) # and hence the perp is either positive or negative: # Depending on the sweep parameter, our centre is either one side or the other of the mid point # find the vector perpendicular to the line am. # Create a position vector matrix of our two pointsĪb_vecs = matrix(, b], b]])Īm_vec = ( ab_dash_vecs - ab_dash_vecs) * 0.5 # Create Transforms to transform our ellipse to a unit circle and back: These modules are required by this extension. errormsg( _( "Failed to import the numpy or numpy.linalg modules. You should have received a copy of the GNU General Public LicenseĪlong with this program if not, write to the Free Softwareįoundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA GNU General Public License for more details. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

This program is distributed in the hope that it will be useful,īut WITHOUT ANY WARRANTY without even the implied warranty of The Free Software Foundation either version 2 of the License, or

It under the terms of the GNU General Public License as published by This program is free software you can redistribute it and/or modify support for transform elements added July 2010 toggle between LINE/LWPOLYLINE added Jan 2010 LWPOLYLINE output modification added Dec 2008 ROBO-Master multispline output added Sept 2008 ROBO-Master output option added Aug 2008 template dxf_outlines.dxf added Feb 2008 by Alvin Penner Copyright (C) 2005,2007,2008 Aaron Spike, (C) 2008,2010 Alvin Penner, file output script for Inkscape creates a AutoCAD R14 DXF file.
