§
    eÎj/	  ã                   ó>   — d Z ddlmZ ddlZ G d„ d¦  «        Zd„ ZdS )z.Support for GEOS prepared geometry operations.é    ©ÚPicklingErrorNc                   óT   — e Zd ZdZd„ Zd„ Zd„ Zd„ Zd„ Zd„ Z	d„ Z
d	„ Zd
„ Zd„ Zd„ ZdS )ÚPreparedGeometryaU  A geometry prepared for efficient comparison to a set of other geometries.

    Examples
    --------
    >>> from shapely.prepared import prep
    >>> from shapely.geometry import Point, Polygon
    >>> triangle = Polygon([(0.0, 0.0), (1.0, 1.0), (1.0, -1.0)])
    >>> p = prep(triangle)
    >>> p.intersects(Point(0.5, 0.5))
    True

    c                 óŽ   — t          |t          ¦  «        r|j        | _        nt          j        |¦  «         || _        d| _        dS )z@Prepare a geometry for efficient comparison to other geometries.TN)Ú
isinstancer   ÚcontextÚshapelyÚprepareÚprepared)Úselfr	   s     ú`/root/private/project/pallet_detection_v2/.venv/lib/python3.11/site-packages/shapely/prepared.pyÚ__init__zPreparedGeometry.__init__   sB   € å�gÕ/Ñ0Ô0ð 	#Ø"œ?ˆDŒLˆLåŒO˜GÑ$Ô$Ð$Ø"ˆDŒLØˆŒˆˆó    c                 ó6   — | j                              |¦  «        S )z;Return True if the geometry contains the other, else False.)r	   Úcontains©r   Úothers     r   r   zPreparedGeometry.contains   ó   € àŒ|×$Ò$ UÑ+Ô+Ð+r   c                 ó6   — | j                              |¦  «        S )zDReturn True if the geometry properly contains the other, else False.)r	   Úcontains_properlyr   s     r   r   z"PreparedGeometry.contains_properly#   s   € àŒ|×-Ò-¨eÑ4Ô4Ð4r   c                 ó6   — | j                              |¦  «        S )z9Return True if the geometry covers the other, else False.)r	   Úcoversr   s     r   r   zPreparedGeometry.covers'   ó   € àŒ|×"Ò" 5Ñ)Ô)Ð)r   c                 ó6   — | j                              |¦  «        S )z0Return True if the geometries cross, else False.)r	   Úcrossesr   s     r   r   zPreparedGeometry.crosses+   ó   € àŒ|×#Ò# EÑ*Ô*Ð*r   c                 ó6   — | j                              |¦  «        S )z3Return True if geometries are disjoint, else False.)r	   Údisjointr   s     r   r   zPreparedGeometry.disjoint/   r   r   c                 ó6   — | j                              |¦  «        S )z0Return True if geometries intersect, else False.)r	   Ú
intersectsr   s     r   r!   zPreparedGeometry.intersects3   s   € àŒ|×&Ò& uÑ-Ô-Ð-r   c                 ó6   — | j                              |¦  «        S )z.Return True if geometries overlap, else False.)r	   Úoverlapsr   s     r   r#   zPreparedGeometry.overlaps7   r   r   c                 ó6   — | j                              |¦  «        S )z,Return True if geometries touch, else False.)r	   Útouchesr   s     r   r%   zPreparedGeometry.touches;   r   r   c                 ó6   — | j                              |¦  «        S )z8Return True if geometry is within the other, else False.)r	   Úwithinr   s     r   r'   zPreparedGeometry.within?   r   r   c                 ó    — t          d¦  «        ‚)zPickling is not supported.z&Prepared geometries cannot be pickled.r   )r   s    r   Ú
__reduce__zPreparedGeometry.__reduce__C   s   € åÐDÑEÔEÐEr   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r!   r#   r%   r'   r)   © r   r   r   r      sÈ   € € € € € ðð ðð ð ð,ð ,ð ,ð5ð 5ð 5ð*ð *ð *ð+ð +ð +ð,ð ,ð ,ð.ð .ð .ð,ð ,ð ,ð+ð +ð +ð*ð *ð *ðFð Fð Fð Fð Fr   r   c                 ó    — t          | ¦  «        S )z.Create and return a prepared geometric object.)r   )Úobs    r   Úprepr1   H   s   € å˜BÑÔÐr   )r-   Úpickler   r
   r   r1   r.   r   r   ú<module>r3      sp   ðØ 4Ð 4à  Ð  Ð  Ð  Ð  Ð  à €€€ð=Fð =Fð =Fð =Fð =Fñ =Fô =Fð =Fð@ ð  ð  ð  ð  r   