ó
    ‰*£h¼P  ã                  óÎ  • S r SSKJr  SSKJr  SSKJr  SSKJrJ	r	  SSK
Jr  SSKJr  SSKJr  SS	KJrJrJr  SS
KJr  SSKJr  SSKJr  SSKJrJrJr  SSKJr  SSK J!r!  SSK"J#r#  SSK$J%r%  SSK&J'r'  / SQr(\)" S5       V s/ s H  n \" S5      PM     sn u  r*r+\" SSS9r, " S S\\5      r- " S S\-\5      r.\" \.\5      S 5       r!\" \.\5      S 5       rS r/S"S  jr0S! r1gs  sn f )#a  The definition of the base geometrical entity with attributes common to
all derived geometrical entities.

Contains
========

GeometryEntity
GeometricSet

Notes
=====

A GeometryEntity is any object that has special geometric properties.
A GeometrySet is a superclass of any GeometryEntity that can also
be viewed as a sympy.sets.Set.  In particular, points are the only
GeometryEntity not considered a Set.

Rn is a GeometrySet representing n-dimensional Euclidean space. R2 and
R3 are currently the only ambient spaces implemented.

é    )Úannotations)ÚBasic)ÚTuple)Ú
EvalfMixinÚN)Úoo)ÚDummy)Úsympify)ÚcosÚsinÚatan©Úeye)Údispatch)Ússtr)ÚSetÚUnionÚ	FiniteSet)Úintersection_sets)Ú
union_sets)Úsolve)Ú	func_name)Úis_sequence)ÚPoint2DÚPoint3DÚPointÚ	Segment2DÚRay2DÚLine2DÚ	Segment3DÚLine3DÚRay3DÚSegmentÚRayÚLineÚPlaneÚTriangleÚRegularPolygonÚPolygonÚCircleÚEllipseÚCurveÚParabolaé   Úentity_dummyT)Úrealc                  óè   • \ rS rSr% SrSrS\S'   S rS rS r	S	 r
S
 rS rS rS rS rS rS rS rS rS!S jrS r\S 5       r\S 5       rS rS rS rS rS rS"S jrS#S jrS$S jr S  r!Sr"g)%ÚGeometryEntityéG   z¼The base class for all geometrical entities.

This class does not represent any particular geometric entity, it only
provides the implementation of some methods common to all subclasses.

© ztuple[str, ...]Ú	__slots__c                óö  • U R                   R                  nUR                   R                  nX#:„  X#:  -
  nU(       d  gSnU R                   R                   H#  n [        R	                  UR                  5      n  O   US:X  a  U$ SnUR                   R                   H#  n [        R	                  UR                  5      n  O   US:X  a  U$ XW:„  XW:  -
  $ ! [
         a    Sn MŽ  f = f! [
         a    Sn MZ  f = f)z#Comparison of two GeometryEntities.r   éÿÿÿÿ)Ú	__class__Ú__name__Ú__mro__Úordering_of_classesÚindexÚ
ValueError)ÚselfÚotherÚn1Ún2ÚcÚi1ÚclsÚi2s           ÚR/home/mande/repo/quber/.venv/lib/python3.13/site-packages/sympy/geometry/entity.pyÚ__cmp__ÚGeometryEntity.__cmp__Q   sô   € à�^‰^×$Ñ$ˆØ�_‰_×%Ñ%ˆØ‰W˜™Ñ!ˆÞØàˆØ—>‘>×)Ô)ˆCðÜ(×.Ñ.¨s¯|©|Ó<�Ùñ *ð �‹8ØˆHàˆØ—?‘?×*Ô*ˆCðÜ(×.Ñ.¨s¯|©|Ó<�Ùñ +ð �‹8ØˆHà‘˜B™GÑ$Ð$øô ó Ø“ðûô ó Ø“ðús$   ÁCÂ!C(ÃC%Ã$C%Ã(C8Ã7C8c                óL   • [        U 5      [        U5      L a  X:H  $ [        5       e)zPSubclasses should implement this method for anything more complex than equality.)ÚtypeÚNotImplementedError©r>   r?   s     rF   Ú__contains__ÚGeometryEntity.__contains__o   s#   € ä�‹:œ˜e›Ò$Ø‘=Ð Ü!Ó#Ð#ó    c                ó,   • [        U R                  5      $ )z=Returns a tuple that will be passed to __new__ on unpickling.)ÚtupleÚargs©r>   s    rF   Ú__getnewargs__ÚGeometryEntity.__getnewargs__u   s   € ä�T—Y‘YÓÐrO   c                ó   • X:X  + $ )z,Test inequality of two geometrical entities.r4   ©r>   Úos     rF   Ú__ne__ÚGeometryEntity.__ne__y   s
   € àŠ}ÐrO   c                óž   • S nU Vs/ s H"  oC" U5      (       a  [        U6 O
[        U5      PM$     nn[        R                  " U /UQ76 $ s  snf )Nc                ó^   • [        U S5      (       a  U R                  (       a  g[        U 5      $ )NÚis_PointF)Úhasattrr]   r   )Úas    rF   Úis_seq_and_not_pointÚ4GeometryEntity.__new__.<locals>.is_seq_and_not_point€   s"   € ä�q˜*×%Ñ%¨!¯*¯*ØÜ˜q“>Ð!rO   )r   r
   r   Ú__new__)rD   rR   Úkwargsr`   r_   s        rF   rb   ÚGeometryEntity.__new__}   sQ   € ò	"ñ OSÓSÊdÈÐ1°!×4Ñ4”�q‘	¼'À!»*ÒDÉdˆÐSÜ�}Š}˜SÐ( 4Ò(Ð(ùò Ts   ˆ)A
c                ó$   • UR                  U 5      $ )z%Implementation of reverse add method.)Ú__add__©r>   r_   s     rF   Ú__radd__ÚGeometryEntity.__radd__‰   ó   € à�y‰y˜‹ÐrO   c                ó$   • UR                  U 5      $ )z*Implementation of reverse division method.)Ú__truediv__rg   s     rF   Ú__rtruediv__ÚGeometryEntity.__rtruediv__�   s   € à�}‰}˜TÓ"Ð"rO   c                óX   • [        U 5      R                  [        U R                  5      -   $ )zIString representation of a GeometryEntity that can be evaluated
by sympy.)rJ   r9   ÚreprrR   rS   s    rF   Ú__repr__ÚGeometryEntity.__repr__‘   s!   € ô �D‹z×"Ñ"¤T¨$¯)©)£_Ñ4Ð4rO   c                ó$   • UR                  U 5      $ )z0Implementation of reverse multiplication method.)Ú__mul__rg   s     rF   Ú__rmul__ÚGeometryEntity.__rmul__–   rj   rO   c                ó$   • UR                  U 5      $ )z-Implementation of reverse subtraction method.)Ú__sub__rg   s     rF   Ú__rsub__ÚGeometryEntity.__rsub__š   rj   rO   c                óX   • [        U 5      R                  [        U R                  5      -   $ )z*String representation of a GeometryEntity.)rJ   r9   r   rR   rS   s    rF   Ú__str__ÚGeometryEntity.__str__ž   s   € ä�D‹z×"Ñ"¤T¨$¯)©)£_Ñ4Ð4rO   c                óØ   • SSK JnJn  [        U5      (       d  [        U5      (       aB  [	        X5      (       a  U" U5      nU" U5      nOU" U5      nU" U5      nU R                  X5      $ g )Nr   )r   r   )Úsympy.geometry.pointr   r   r   Ú
isinstanceÚ_subs)r>   ÚoldÚnewr   r   s        rF   Ú
_eval_subsÚGeometryEntity._eval_subs¢   s]   € ß7Ü�s×Ñœ{¨3×/Ñ/Ü˜$×(Ñ(Ù˜c“l�Ù˜c“l‘á˜C“j�Ù˜C“j�Ø—J‘J˜sÓ(Ð(ð  0rO   c                óØ  •  U R                   n[        S U 5       5      (       d  gSn[	        [
        U5      u  p4pVX5:X  a  XF:X  a  US-
  US-
  US-   US-   4u  p4pVO'Sn[        XS-
  Xd-
  /5      nX‡-  n	X9-  nXI-  nXY-  nXi-  nXS-
  n
Xd-
  n[        [        SU
/5      S/5      n[        [        SU/5      S/5      n[        XÍ5      S:X  a  S	O[        X«5      [        XÍ5      -  n U R                  U5      nS
R                  X4X«5      nSR                  Xd-   5      nUR                  UXÍ5      nUSR                  UU5      -   $ ! [        [        4 a     gf = f! [        [        4 a     gf = f)z;SVG representation of a GeometryEntity suitable for IPythonNc              3  ó^   #   • U  H#  oR                   =(       a    UR                  v •  M%     g 7f©N)Ú	is_numberÚ	is_finite)Ú.0Úxs     rF   Ú	<genexpr>Ú,GeometryEntity._repr_svg_.<locals>.<genexpr>·   s   é € Ð?º°1—;‘;×. 1§;¡;Ô.ºùs   ‚+-aì  <svg xmlns="http://www.w3.org/2000/svg"
            xmlns:xlink="http://www.w3.org/1999/xlink"
            width="{1}" height="{2}" viewBox="{0}"
            preserveAspectRatio="xMinYMin meet">
            <defs>
                <marker id="markerCircle" markerWidth="8" markerHeight="8"
                    refx="5" refy="5" markerUnits="strokeWidth">
                    <circle cx="5" cy="5" r="1.5" style="stroke: none; fill:#000000;"/>
                </marker>
                <marker id="markerArrow" markerWidth="13" markerHeight="13" refx="2" refy="4"
                       orient="auto" markerUnits="strokeWidth">
                    <path d="M2,2 L2,6 L6,4" style="fill: #000000;" />
                </marker>
                <marker id="markerReverseArrow" markerWidth="13" markerHeight="13" refx="6" refy="4"
                       orient="auto" markerUnits="strokeWidth">
                    <path d="M6,2 L6,6 L2,4" style="fill: #000000;" />
                </marker>
            </defs>g      à?gš™™™™™¹?g      Y@i,  r   ç      ð?z{} {} {} {}zmatrix(1,0,0,-1,0,{})z<g transform="{}">{}</g></svg>)
ÚboundsrK   Ú	TypeErrorÚallÚmapr   ÚmaxÚminÚ_svgÚformat)r>   r�   Úsvg_topÚxminÚyminÚxmaxÚymaxÚexpandÚwidest_partÚexpand_amountÚdxÚdyÚwidthÚheightÚscale_factorÚsvgÚview_boxÚ	transforms                     rF   Ú
_repr_svg_ÚGeometryEntity._repr_svg_­   s¨  € ð	Ø—[‘[ˆFô Ñ?¹Ó?×?Ñ?Øðˆô( "%¤Q¨£Ñˆ�DØ‹<˜D›Là%)¨B¡Y°°b±¸$À¹)ÀTÈBÁYÐ%NÑ"ˆD˜˜dð ˆFÜ˜t™{¨D©KÐ8Ó9ˆKØ'Ñ0ˆMØÑ!ˆDØÑ!ˆDØÑ!ˆDØÑ!ˆDØ‰[ˆØ‰[ˆÜ”S˜$ ˜“_ cÐ*Ó+ˆÜ”c˜4 ˜*“o sÐ+Ó,ˆä  Ó/°1Ó4‘r¼#¸b»+ÌÈEÓHZÑ:Zˆð	Ø—)‘)˜LÓ)ˆCð !×'Ñ'¨°BÓ;ˆØ+×2Ñ2°4±;Ó?ˆ	Ø—.‘. ¨5Ó9ˆàØ,ß‰f�Y Ó$ñ%ð 	%øôu $¤YÐ/ó 	ñ ð	ûôb $¤YÐ/ó 	ñ ð	ús#   ‚E  Ã#E Å EÅEÅE)Å(E)c                ó   • [        5       e)zñReturns SVG path element for the GeometryEntity.

Parameters
==========

scale_factor : float
    Multiplication factor for the SVG stroke-width.  Default is 1.
fill_color : str, optional
    Hex string for fill color. Default is "#66cc99".
©rK   )r>   r¤   Ú
fill_colors      rF   r–   ÚGeometryEntity._svgð   s   € ô "Ó#Ð#rO   c                ó   • U $ rˆ   r4   rS   s    rF   Ú_sympy_ÚGeometryEntity._sympy_ý   s   € ØˆrO   c                ó   • [        5       e)zCWhat is the dimension of the space that the object is contained in?r«   rS   s    rF   Úambient_dimensionÚ GeometryEntity.ambient_dimension   s   € ô "Ó#Ð#rO   c                ó   • [        5       e)zgReturn a tuple (xmin, ymin, xmax, ymax) representing the bounding
rectangle for the geometric figure.

r«   rS   s    rF   r�   ÚGeometryEntity.bounds  s   € ô "Ó#Ð#rO   c                ó  ^ • SSK Jn  SSKJnJnJn  SSKJn  SSKJ	nJ
n  [        X5      (       a  T R                  U5      $ [        X5      (       a  [        U 4S jUR                   5       5      $ [        XU45      (       a  g[        X5      (       aŒ  T R                  UR                  5      =(       aj    T R                  U" UR                  R                   UR"                  -   UR                  R$                  5      5      =(       a    T R'                  U5      (       + $ [        X5      (       aP  [        X5      (       a!  T R                  UR                  5      (       d  g[        U 4S jUR(                   5       5      $ [+        5       e)	a-  
Return True if o is inside (not on or outside) the boundaries of self.

The object will be decomposed into Points and individual Entities need
only define an encloses_point method for their class.

See Also
========

sympy.geometry.ellipse.Ellipse.encloses_point
sympy.geometry.polygon.Polygon.encloses_point

Examples
========

>>> from sympy import RegularPolygon, Point, Polygon
>>> t  = Polygon(*RegularPolygon(Point(0, 0), 1, 3).vertices)
>>> t2 = Polygon(*RegularPolygon(Point(0, 0), 2, 3).vertices)
>>> t2.encloses(t)
True
>>> t.encloses(t2)
False

r   ©r   )r#   r$   r%   )r+   )r)   r(   c              3  óF   >#   • U  H  nTR                  U5      v •  M     g 7frˆ   ©Úencloses_point)r‹   rŒ   r>   s     €rF   r�   Ú*GeometryEntity.encloses.<locals>.<genexpr>0  s   øé € Ð@²x°!�t×*Ñ*¨1×-Ð-²xùó   ƒ!Fc              3  óF   >#   • U  H  nTR                  U5      v •  M     g 7frˆ   r¹   )r‹   Úvr>   s     €rF   r�   r»   <  s   øé € ÐB²z°!�t×*Ñ*¨1×-Ð-²zùr¼   )r   r   Úsympy.geometry.liner#   r$   r%   Úsympy.geometry.ellipser+   Úsympy.geometry.polygonr)   r(   r€   rº   r’   ÚpointsÚcenterrŒ   ÚhradiusÚyÚintersectionÚverticesrK   )	r>   rX   r   r#   r$   r%   r+   r)   r(   s	   `        rF   ÚenclosesÚGeometryEntity.encloses  s   ø€ õ4 	/ß:Ñ:Ý2ßBä�a×ÑØ×&Ñ& qÓ)Ð)Ü˜×#Ñ#ÜÔ@°q·x²xÓ@Ó@Ð@Ü˜ ˜;×'Ñ'ØÜ˜×#Ñ#Ø×&Ñ& q§x¡xÓ0÷ )Ø×#Ñ#Ù�a—h‘h—j‘j 1§9¡9Ñ,¨a¯h©h¯j©jÓ9ó;÷)ð ×%Ñ% aÓ(Ô(ð)ô ˜×#Ñ#Ü˜!×,Ñ,Ø×*Ñ*¨1¯8©8×4Ñ4Ø ÜÔB°q·z²zÓBÓBÐBÜ!Ó#Ð#rO   c                ó
   • X:H  $ rˆ   r4   rW   s     rF   ÚequalsÚGeometryEntity.equals?  s
   € Ø‰yÐrO   c                ó   • [        5       e)a\  
Returns a list of all of the intersections of self with o.

Notes
=====

An entity is not required to implement this method.

If two different types of entities can intersect, the item with
higher index in ordering_of_classes should implement
intersections with anything having a lower index.

See Also
========

sympy.geometry.util.intersection

r«   rW   s     rF   rÆ   ÚGeometryEntity.intersectionB  s   € ô& "Ó#Ð#rO   c                ó   • [        5       e)a  Is this geometrical entity similar to another geometrical entity?

Two entities are similar if a uniform scaling (enlarging or
shrinking) of one of the entities will allow one to obtain the other.

Notes
=====

This method is not intended to be used directly but rather
through the `are_similar` function found in util.py.
An entity is not required to implement this method.
If two different types of entities can be similar, it is only
required that one of them be able to determine this.

See Also
========

scale

r«   rL   s     rF   Ú
is_similarÚGeometryEntity.is_similarW  s   € ô* "Ó#Ð#rO   c           
     óÌ  ^• SSK Jm  U nUnT" SS5      nUR                  R                  (       ao  UR                  S   R
                  nU(       d  UR                  SS9$ UR                  T5       Vs/ s H"  ofUR                  SXVR
                  -
  -  S94PM$     nnGOžUR                  [        L ao  UR                  S   R                  nU(       d  UR                  SS9$ UR                  T5       Vs/ s H"  ofUR                  SXVR                  -
  -  S94PM$     nnGO[        US5      (       d2  [        U4S jUR                   5       5      (       d  [        S	U-  5      e[        UR                  5      nUR                  n	U	S   * U	S
   -  n
T" [        [
        5      nUR                  U
* S9R!                  U* U5      R                  SS9R!                  X„5      R                  U
S9nUR                  T5       Vs/ s H5  ofUR#                  [        UR                  [
        UR
                  05      4PM7     nnUR#                  [%        U5      5      $ s  snf s  snf s  snf )a1  
Reflects an object across a line.

Parameters
==========

line: Line

Examples
========

>>> from sympy import pi, sqrt, Line, RegularPolygon
>>> l = Line((0, pi), slope=sqrt(2))
>>> pent = RegularPolygon((1, 2), 1, 5)
>>> rpent = pent.reflect(l)
>>> rpent
RegularPolygon(Point2D(-2*sqrt(2)*pi/3 - 1/3 + 4*sqrt(2)/3, 2/3 + 2*sqrt(2)/3 + 2*pi/3), -1, 5, -atan(2*sqrt(2)) + 3*pi/5)

>>> from sympy import pi, Line, Circle, Point
>>> l = Line((0, pi), slope=1)
>>> circ = Circle(Point(0, 0), 5)
>>> rcirc = circ.reflect(l)
>>> rcirc
Circle(Point2D(-pi, pi), -5)

r   r·   r7   )rÅ   r.   )rŒ   Úreflectc              3  ó<   >#   • U  H  n[        UT5      v •  M     g 7frˆ   )r€   )r‹   Úargr   s     €rF   r�   Ú)GeometryEntity.reflect.<locals>.<genexpr>™  s   øé € ð 5>Ú6<¨s”J˜s E×*Ð*²fùs   ƒz)reflect undefined or non-Point args in %sé   )r   r   ÚslopeÚis_zerorR   rÅ   ÚscaleÚatomsÚ	translater   rŒ   r^   r’   rK   r   ÚcoefficientsÚrotateÚxreplaceÚdict)r>   ÚlineÚgÚlrX   r¾   ÚpÚrepsr_   rB   ÚdÚxfr   s               @rF   rÓ   ÚGeometryEntity.reflectn  s  ø€ õ6 	/àˆØˆÙ�!�Q‹KˆØ�7‰7�?�?Ø—‘�q‘	—‘ˆAÞØ—w‘w �w�}Ð$Ø=>¿W¹WÀU¼^ÓLº^¸˜Ÿ™ a¨¯S©S©¡k˜Ð2Ó3¹^ˆDÐL‰DØ�W‰WœŠ]Ø—‘�q‘	—‘ˆAÞØ—w‘w �w�}Ð$Ø=>¿W¹WÀU¼^ÓLº^¸˜Ÿ™ a¨¯S©S©¡k˜Ð2Ó3¹^ˆDÐL‰Dä˜1˜i×(Ñ(´ô 5>Ø67·f²fó5>÷ 2>ñ 2>ä)Ø?À!ÑCóEð Eä�Q—W‘W“ˆAØ—‘ˆAØ�2‘��q˜‘t‘ˆAá”qœ!“ˆBØ—‘  �Ð#×*Ñ*¨A¨2¨qÓ1×7Ñ7¸"Ð7ð ß‘&˜“,Ÿy™y¨1˜y˜~ð ð ABÇÁÈÄÓOÂ¸1˜Ÿ™¤Q¨¯©¬Q°·±Ð$4Ó5Ó6ÁˆDÐOØ�z‰zœ$˜t›*Ó%Ð%ùò) Mùò
 Mùò Ps   Á2)IÃ4)IÇ?<I!Nc                óØ   • / nU R                    HK  n[        U[        5      (       a"  UR                  UR	                  X5      5        M:  UR                  U5        MM     [        U 5      " U6 $ )aö  Rotate ``angle`` radians counterclockwise about Point ``pt``.

The default pt is the origin, Point(0, 0)

See Also
========

scale, translate

Examples
========

>>> from sympy import Point, RegularPolygon, Polygon, pi
>>> t = Polygon(*RegularPolygon(Point(0, 0), 1, 3).vertices)
>>> t # vertex on x axis
Triangle(Point2D(1, 0), Point2D(-1/2, sqrt(3)/2), Point2D(-1/2, -sqrt(3)/2))
>>> t.rotate(pi/2) # vertex on y axis now
Triangle(Point2D(0, 1), Point2D(-sqrt(3)/2, -1/2), Point2D(sqrt(3)/2, -1/2))

)rR   r€   r2   ÚappendrÞ   rJ   )r>   ÚangleÚptÚnewargsr_   s        rF   rÞ   ÚGeometryEntity.rotate¨  sV   € ð* ˆØ—”ˆAÜ˜!œ^×,Ñ,Ø—‘˜qŸx™x¨Ó2Ö3à—‘˜qÖ!ñ	 ô
 �DŒz˜7Ð#Ð#rO   c           	     ó"  • SSK Jn  U(       aG  U" USS9nU R                  " U* R                  6 R	                  X5      R                  " UR                  6 $ [        U 5      " U R                   Vs/ s H  oUR	                  X5      PM     sn6 $ s  snf )ae  Scale the object by multiplying the x,y-coordinates by x and y.

If pt is given, the scaling is done relative to that point; the
object is shifted by -pt, scaled, and shifted by pt.

See Also
========

rotate, translate

Examples
========

>>> from sympy import RegularPolygon, Point, Polygon
>>> t = Polygon(*RegularPolygon(Point(0, 0), 1, 3).vertices)
>>> t
Triangle(Point2D(1, 0), Point2D(-1/2, sqrt(3)/2), Point2D(-1/2, -sqrt(3)/2))
>>> t.scale(2)
Triangle(Point2D(2, 0), Point2D(-1, sqrt(3)/2), Point2D(-1, -sqrt(3)/2))
>>> t.scale(2, 2)
Triangle(Point2D(2, 0), Point2D(-1, sqrt(3)), Point2D(-1, -sqrt(3)))

r   r·   r.   ©Údim)r   r   rÜ   rR   rÚ   rJ   )r>   rŒ   rÅ   rì   r   r_   s         rF   rÚ   ÚGeometryEntity.scaleÅ  sp   € õ0 	/ÞÙ�r˜qÑ!ˆBØ—>’> R C§:¡:Ð.×4Ñ4°QÓ:×DÒDÀbÇgÁgÐNÐNÜ�DŒz°4·9²9Ó=²9¨aŸG™G AžM±9Ñ=Ð>Ð>ùÒ=s   Á.Bc                óÚ   • / nU R                    HK  n[        U[        5      (       a"  UR                  UR	                  X5      5        M:  UR                  U5        MM     U R
                  " U6 $ )a  Shift the object by adding to the x,y-coordinates the values x and y.

See Also
========

rotate, scale

Examples
========

>>> from sympy import RegularPolygon, Point, Polygon
>>> t = Polygon(*RegularPolygon(Point(0, 0), 1, 3).vertices)
>>> t
Triangle(Point2D(1, 0), Point2D(-1/2, sqrt(3)/2), Point2D(-1/2, -sqrt(3)/2))
>>> t.translate(2)
Triangle(Point2D(3, 0), Point2D(3/2, sqrt(3)/2), Point2D(3/2, -sqrt(3)/2))
>>> t.translate(2, 2)
Triangle(Point2D(3, 2), Point2D(3/2, sqrt(3)/2 + 2), Point2D(3/2, 2 - sqrt(3)/2))

)rR   r€   r2   rê   rÜ   Úfunc)r>   rŒ   rÅ   rí   r_   s        rF   rÜ   ÚGeometryEntity.translateã  sV   € ð* ˆØ—”ˆAÜ˜!œ^×,Ñ,Ø—‘˜qŸ{™{¨1Ó0Ö1à—‘˜qÖ!ñ	 ð
 �yŠy˜'Ð"Ð"rO   c                ó.  • SSK Jn  [        U[        5      (       d  U" XR                  S9n[        X5      (       d  [        S5      e[        U R                  [        5      U-
  [        SS9nU(       d  [        S[        U 5      -  5      eX$S   [           0$ )a}  Return the parameter corresponding to the given point.
Evaluating an arbitrary point of the entity at this parameter
value will return the given point.

Examples
========

>>> from sympy import Line, Point
>>> from sympy.abc import t
>>> a = Point(0, 0)
>>> b = Point(2, 2)
>>> Line(a, b).parameter_value((1, 1), t)
{t: 1/2}
>>> Line(a, b).arbitrary_point(t).subs(_)
Point2D(1, 1)
r   r·   rð   zother must be a pointT)rà   zGiven point is not on %s)
r   r   r€   r2   r²   r=   r   Úarbitrary_pointÚTr   )r>   r?   Útr   Úsols        rF   Úparameter_valueÚGeometryEntity.parameter_value   s�   € õ" 	/Ü˜%¤×0Ñ0Ù˜%×%;Ñ%;Ñ<ˆEÜ˜%×'Ñ'ÜÐ4Ó5Ð5Ü�D×(Ñ(¬Ó+¨eÑ3´Q¸TÑBˆÞÜÐ7¼)ÀD»/ÑIÓJÐJØ�q‘6œ!‘9ˆ~ÐrO   )r�   z#66cc99rˆ   )r×   r×   N©r   r   )#r9   Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r5   Ú__annotations__rG   rM   rT   rY   rb   rh   rm   rq   ru   ry   r|   r„   r¨   r–   r¯   Úpropertyr²   r�   rÈ   rË   rÆ   rÐ   rÓ   rÞ   rÚ   rÜ   rû   Ú__static_attributes__r4   rO   rF   r2   r2   G   s·   ‡ ñð "$€IˆÓ#ò%ò<$ò òò
)òò#ò5ò
òò5ò	)òA%ôF$òð ñ$ó ð$ð ñ$ó ð$ò/$òbò$ò*$ò.8&ôt$ô:?ô<#õ:rO   r2   c                  ó"   • \ rS rSrSrSrS rSrg)ÚGeometrySeti  zSParent class of all GeometryEntity that are also Sets
(compatible with sympy.sets)
r4   c                óœ   ^ • [        U[        5      (       a&  UR                  (       a  [        U 4S jU 5       5      $ T R	                  U5      $ )zFsympy.sets uses the _contains method, so include it for compatibility.c              3  óF   >#   • U  H  nTR                  U5      v •  M     g 7frˆ   )rM   )r‹   Úir>   s     €rF   r�   Ú(GeometrySet._contains.<locals>.<genexpr>&  s   øé € Ð;²U°�t×(Ñ(¨×+Ð+²Uùr¼   )r€   r   Úis_FiniteSetr’   rM   rL   s   ` rF   Ú	_containsÚGeometrySet._contains"  s<   ø€ ô �eœS×!Ñ! e×&8×&8ÜÔ;±UÓ;Ó;Ð;à× Ñ  Ó'Ð'rO   N)r9   rþ   rÿ   r   r  r5   r  r  r4   rO   rF   r  r    s   † ñð €Iõ(rO   r  c                ó  • UR                   (       aT  U Vs/ s H  o R                  U5      (       a  M  UPM     nn[        U5      [        U5      :X  a  g[        U [	        U6 5      $ U R                  U5      (       a  U $ gs  snf )zJReturns the union of self and o
for use with sympy.sets.Set, if possible. N)r  r  Úlenr   r   )r>   rX   rä   Úother_pointss       rF   r   r   *  sj   € ð 	‡~‡~Ù#$Ó>¢1˜a¯N©N¸1×,=Ÿ¡1ˆÐ>Üˆ|Ó¤ A£Ó&ØÜ�Tœ9 lÐ3Ó4Ð4Ø‡~�~�a×ÑØˆØùò ?s
   –A?³A?c           	     óf  ^ • SSK Jn   UR                  (       a  [        U 4S jU 5       6 nOT R	                  U5      n [        U Vs/ s H  n[        XB5      (       d  M  UPM     sn6 nU Vs/ s H  n[        XB5      (       a  M  UPM     nn[        Xe/-   6 $ ! [
         a     gf = fs  snf s  snf )z?Returns a sympy.sets.Set of intersection objects,
if possible. r   r·   c              3  óX   >#   • U  H  nTR                  U5      (       d  M  Uv •  M!     g 7frˆ   )Úcontains)r‹   rä   r>   s     €rF   r�   Ú$intersection_sets.<locals>.<genexpr>G  s   øé € ÐAª1 a°·±¸a×0@§¡ª1ùs   ƒ*¡	*N)r   r   r  r   rÆ   rK   r€   r   )r>   rX   r   Úinterrä   rÂ   Ú
non_pointss   `      rF   r   r   <  s¡   ø€ õ
 +ð
ð �>�>ÜÔA©1ÓAÐB‰Eà×%Ñ% aÓ(‰Eô ¡EÓB¢E˜q¬Z¸×-AŸ¡EÑBÐC€FÙ"Ó?šU˜¬*°Q×*>—!™U€JÐ?ä�: Ñ(Ð*Ð*øô ó ñ ðüò CùÚ?s.   ‰#B ­B ÁB)Á B)Á.B.ÂB.Â
B&Â%B&c                ó,   • [        S5      nXS'   XS'   U$ )z6Return the matrix to translate a 2-D point by x and y.é   )r.   r   )r.   r×   r   )rŒ   rÅ   Úrvs      rF   rÜ   rÜ   U  s   € ä	ˆQ‹€BØ€t�HØ€t�HØ€IrO   Nc                ó¬   • [        S5      nXS'   XS'   U(       a9  SSKJn  U" USS9n[        U* R                  6 n[        UR                  6 nXS-  U-  $ U$ )z€Return the matrix to multiply a 2-D point's coordinates by x and y.

If pt is given, the scaling is done relative to that point.r  rý   )r×   r×   r   r·   r.   rð   )r   r   r   rÜ   rR   )rŒ   rÅ   rì   r  r   Útr1Útr2s          rF   rÚ   rÚ   ]  s\   € ô 
ˆQ‹€BØ€t�HØ€t�HÞ	Ý.Ù�2˜1ÑˆÜ˜2˜#Ÿ™Ð$ˆÜ˜Ÿ™Ð!ˆØ‰v�c‰zÐØ€IrO   c                óh   • [        U 5      n[        S5      [        U 5      -  nXS'   U* US'   SUS'   U$ )aä  Return the matrix to rotate a 2-D point about the origin by ``angle``.

The angle is measured in radians. To Point a point about a point other
then the origin, translate the Point, do the rotation, and
translate it back:

>>> from sympy.geometry.entity import rotate, translate
>>> from sympy import Point, pi
>>> rot_about_11 = translate(-1, -1)*rotate(pi/2)*translate(1, 1)
>>> Point(1, 1).transform(rot_about_11)
Point2D(1, 1)
>>> Point(0, 0).transform(rot_about_11)
Point2D(2, 0)
r  )r   r×   )r×   r   r×   )r.   r.   )r   r   r   )ÚthÚsr  s      rF   rÞ   rÞ   m  s>   € ô 	ˆB‹€AÜ	ˆQ‹”�B“‰€BØ€t�HØˆr€B€t�HØ€B€t�HØ€IrO   rˆ   )2r  Ú
__future__r   Úsympy.core.basicr   Úsympy.core.containersr   Úsympy.core.evalfr   r   Úsympy.core.numbersr   Úsympy.core.symbolr	   Úsympy.core.sympifyr
   Ú(sympy.functions.elementary.trigonometricr   r   r   Úsympy.matricesr   Úsympy.multipledispatchr   Úsympy.printingr   Ú
sympy.setsr   r   r   Ú sympy.sets.handlers.intersectionr   Úsympy.sets.handlers.unionr   Úsympy.solvers.solversr   Úsympy.utilities.miscr   Úsympy.utilities.iterablesr   r;   ÚrangerŒ   rÅ   rø   r2   r  rÜ   rÚ   rÞ   )r	  s   0rF   Ú<module>r2     sæ   ðñõ* #å "Ý 'ß *Ý !Ý #Ý &ß CÑ CÝ Ý +Ý ß ,Ñ ,Ý >Ý 0Ý 'Ý *Ý 1òÐ ñ0 (-¨Q¤xÓ0¢x !‰ˆnÖ¡xÑ0�€€1Ù	ˆ.˜tÑ$€ôR�U˜Jô Rôj(�. #ô (ñ 
ˆ+�sÓñó ðñ" 
ˆ+�sÓñ+ó ð+ò0ôó ùòU 1s   ÂC"