File: //opt/alt/python27/lib64/python2.7/site-packages/matplotlib/bezier.pyo
�
�)�Uc @ s( d Z d d l Z d d l m Z d d l m Z d d l m Z d d l Z d � Z
d � Z d � Z d � Z
d
d d d
� Z d d d � � YZ d d � Z d
d d d � Z d e d � Z d � Z d � Z d d � Z d � Z d d � Z d � Z d d d
d � Z d � Z d � Z d S( sO
A module providing some utility functions regarding bezier path manipulation.
i����N( t sqrt( t Path( t xorc C s� | | | | } | | | | } | | }
} | | } }
|
|
| | } | d k rm t d � � n |
| } } | |
} } g | | | | g D] } | | ^ q� \ } } } } | | | | } | | | | } | | f S( s� return a intersecting point between a line through (cx1, cy1)
and having angle t1 and a line through (cx2, cy2) and angle t2.
g s Given lines do not intersect( t
ValueError( t cx1t cy1t cos_t1t sin_t1t cx2t cy2t cos_t2t sin_t2t line1_rhst line2_rhst at bt ct dt ad_bct a_t b_t c_t d_t kt xt y( ( sD /opt/alt/python27/lib64/python2.7/site-packages/matplotlib/bezier.pyt get_intersection s 5c
C s� | d k r | | | | f S| | } } | | } } | | | | | | } }
| | | | | | } } | |
| | f S( s�
For a line passing through (*cx*, *cy*) and having a angle *t*,
return locations of the two points located along its perpendicular line at the distance of *length*.
g ( (
t cxt cyt cos_tt sin_tt lengthR R R
R t x1t y1t x2t y2( ( sD /opt/alt/python27/lib64/python2.7/site-packages/matplotlib/bezier.pyt get_normal_points1 s c C s"