o
    JÉfq  ã                   @   s&   d dl Zd dlZdd„ Zddd„ZdS )é    Nc                 C   sb   t  | j¡dd…dd…f }t  ||d g¡j\}}t  |dd… |dd… |dd…   ¡d S )z¬Return the signed area enclosed by a ring in linear time using the
    algorithm at: https://web.archive.org/web/20080209143651/http://cgafaq.info:80/wiki/Polygon_Area
    Né   é   éÿÿÿÿéþÿÿÿg       @)ÚnpÚarrayÚcoordsÚvstackÚTÚsum)Úringr   ÚxsÚys© r   úb/home/deployuser/azure_apps/autowriter/venv/lib/python3.10/site-packages/shapely/algorithms/cga.pyÚsigned_area   s   .r   c                 C   s   dd„ }t jdkrt jS |S )zPredicate implementationc                 S   s   t | ƒdkS )Ng        )r   )r   r   r   r   Ú	is_ccw_op   s   zis_ccw_impl.<locals>.is_ccw_op)é   é   r   )ÚshapelyÚgeos_versionÚis_ccw)Únamer   r   r   r   Úis_ccw_impl   s   
r   )N)Únumpyr   r   r   r   r   r   r   r   Ú<module>   s    	