File: //usr/share/inkscape/extensions/render_gears.pyc
�
��Yc @ s� d Z d d l Z d d l Z d d l Z d d l m Z d d l Td d l Z d � Z d � Z d � Z
d e j f d � � YZ e
d
k r� e � Z e j � n d S( s
Copyright (C) 2007 Aaron Spike (aaron @ ekips.org)
Copyright (C) 2007 Tavmjong Bah (tavmjong @ free.fr)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
i����N( t computePointInNode( t *c C sA t | � t | � } } t | d | d � | t | | � S( Ni ( t floatt sqrtt acos( t Rbt R( ( s. /usr/share/inkscape/extensions/render_gears.pyt involute_intersect_angle s c C s* | t | � } | t | � } | | f S( N( t cost sin( t radiust anglet xt y( ( s. /usr/share/inkscape/extensions/render_gears.pyt point_on_circle s c C sK | d } | d } d | } x | D] } | d | 7} q% W| d 7} | S( Ni i s
M%.5f,%.5fs L%.5f,%.5ft z( ( t pt ft svgdR ( ( s. /usr/share/inkscape/extensions/render_gears.pyt points_to_svgd$ s
t Gearsc B s e Z d � Z d � Z RS( c
C s t j j | � | j j d d d d d d d d d d
d d �| j j d
d d d d d d d d d d d �| j j d d d d d d d d d d d d �| j j d d d d d d d d d d d d �| j j d d d d d d d d d d d d! �d S("