§
    eÎjü
  ã                   ó@   — d Z ddlZddlZddlZddlmZ d„ Zd„ Zd„ Z	dS )zBProvides multi-point element-wise operations such as ``contains``.é    N)ÚPreparedGeometryc                 óŠ  — t          j        | ¦  «        t          j        |¦  «        }} | j        |j        k    rt          d¦  «        ‚| j        t           j        k    r|                      t           j        ¦  «        } |j        t           j        k    r|                     t           j        ¦  «        }t          j        | |¦  «        S )Nz"X and Y shapes must be equivalent.)	ÚnpÚ
asanyarrayÚshapeÚ
ValueErrorÚdtypeÚfloat64ÚastypeÚshapelyÚpoints)ÚxÚys     úk/root/private/project/pallet_detection_v2/.venv/lib/python3.11/site-packages/shapely/vectorized/__init__.pyÚ_construct_pointsr      s“   € ÝŒ=˜ÑÔ�Rœ]¨1Ñ-Ô-€q€AØ„w�!”'ÒÐÝÐ=Ñ>Ô>Ð>à„w•"”*ÒÐØ�HŠH•R”ZÑ Ô ˆØ„w•"”*ÒÐØ�HŠH•R”ZÑ Ô ˆåŒ>˜!˜QÑÔÐó    c                 óÆ   — t          j        dt          d¬¦  «         t          | t          ¦  «        r| j        } t          j        | ¦  «         t          j        | ||¦  «        S )ad  Check whether multiple points are contained by a single geometry.

    Vectorized (element-wise) version of `contains`.

    Parameters
    ----------
    geometry : PreparedGeometry or subclass of BaseGeometry
        The geometry which is to be checked to see whether each point is
        contained within. The geometry will be "prepared" if it is not already
        a PreparedGeometry instance.
    x : array
        The x coordinates of the points to check.
    y : array
        The y coordinates of the points to check.

    Returns
    -------
    Mask of points contained by the given `geometry`.

    z¡The 'shapely.vectorized.contains' function is deprecated and will be removed a future version. Use 'shapely.contains_xy' instead (available since shapely 2.0.0).é   ©Ú
stacklevel)	ÚwarningsÚwarnÚDeprecationWarningÚ
isinstancer   Úcontextr   ÚprepareÚcontains_xy)Úgeometryr   r   s      r   Úcontainsr      sl   € õ* „Mð	 õ 	Øðñ ô ð õ �(Õ,Ñ-Ô-ð $ØÔ#ˆÝ„O�HÑÔÐÝÔ˜x¨¨AÑ.Ô.Ð.r   c                 óÔ   — t          j        dt          d¬¦  «         t          | t          ¦  «        r| j        } | j        }t          j        |¦  «         t          j	        |||¦  «        S )aw  Check whether multiple points touch the exterior of a single geometry.

    Vectorized (element-wise) version of `touches`.

    Parameters
    ----------
    geometry : PreparedGeometry or subclass of BaseGeometry
        The geometry which is to be checked to see whether each point is
        contained within. The geometry will be "prepared" if it is not already
        a PreparedGeometry instance.
    x : array
        The x coordinates of the points to check.
    y : array
        The y coordinates of the points to check.

    Returns
    -------
    Mask of points which touch the exterior of the given `geometry`.

    z»The 'shapely.vectorized.touches' function is deprecated and will be removed a future version. Use 'shapely.intersects_xy(geometry.boundary, x, y)' instead (available since shapely 2.0.0).r   r   )
r   r   r   r   r   r   Úboundaryr   r   Úintersects_xy)r   r   r   r!   s       r   Útouchesr#   :   st   € õ* „Mð	4õ 	Øðñ ô ð õ �(Õ,Ñ-Ô-ð $ØÔ#ˆàÔ €HÝ„O�HÑÔÐÝÔ  ¨1¨aÑ0Ô0Ð0r   )
Ú__doc__r   Únumpyr   r   Úshapely.preparedr   r   r   r#   © r   r   ú<module>r(      ss   ðØ HÐ Hà €€€à Ð Ð Ð à €€€Ø -Ð -Ð -Ð -Ð -Ð -ð
 ð 
 ð 
 ð/ð /ð /ðD!1ð !1ð !1ð !1ð !1r   