|
Server : Apache System : Linux server112.speedpacket.com 3.10.0-962.3.2.lve1.5.36.el7.x86_64 #1 SMP Mon May 18 02:16:06 EDT 2020 x86_64 User : equistyl ( 1341) PHP Version : 8.1.30 Disable Function : NONE Directory : /lib64/python2.7/site-packages/matplotlib/ |
Upload File : |
�
r`]c @ s5 d Z d d l m Z d d l Z d d l m Z d d l m Z d d l Z d e
f d � � YZ d � Z d � Z
d
� Z d � Z d d
d d � Z d e f d � � YZ d d � Z d d
d d � Z d e d � Z d � Z d � Z d d � Z 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����( t print_functionN( t Path( t xort NonIntersectingPathExceptionc B s e Z RS( ( t __name__t
__module__( ( ( s7 /usr/lib64/python2.7/site-packages/matplotlib/bezier.pyR
s c 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( ( s7 /usr/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( ( s7 /usr/lib64/python2.7/site-packages/matplotlib/bezier.pyt get_normal_points2 s c C s"