File: //usr/share/inkscape/extensions/funcplot.pyc
�
��Yc @ s� d Z d d l Td d l Td d l m Z d d l Z d d l Z d d l Z d d e e e e e e d � Z
d e j f d � � YZ e
d
k r� e � Z e j � n d S( s,
Copyright (C) 2007 Tavmjong Bah, tavmjong@free.fr
Copyright (C) 2006 Georg Wiora, xorx@quarkbox.de
Copyright (C) 2006 Johan Engelen, johan@shouraizou.nl
Copyright (C) 2005 Aaron Spike, aaron@ekips.org
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.
Changes:
* This program is a modified version of wavy.py by Aaron Spike.
* 22-Dec-2006: Wiora : Added axis and isotropic scaling
* 21-Jun-2007: Tavmjong: Added polar coordinates
i����( t *( t deepcopyNs sin(x)s cos(x)c , s� | t k r+ d t � � d t | } n � | k rN t j t d � � g S| | � � | � � � � f d � } |
r� | | d � | d � � � f d � } n | � k r� t j t d � � g S| | � � | � � � � f d � } | ry|
ry� � k rD| d � } � � | | � � | | | � } qy| d � } � � | | � � | | | � } n yT | d k r�t d
| j d � � } n |
d k r�t d
|
j d � � } n Wn t k
r�g SX| � | d } | d
} | d } g } | r�� d k rg| d k rg| j d | | d � g g � | j d | d g g � n � d k r�| d k r�| j d | d � | g g � | j d d | g g � q�n � } | � � } |
r| t | � } | t
| � } | } | } n | s|
r{� | } | | � } |
r\| t | � }! | t
| � }"