o
    œe‰  ã                   @   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ÚcoordsZvstackÚTÚsum)Úringr   ZxsZys© r   úFD:\Projects\ConvertPro\env\Lib\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   )ÚshapelyZgeos_versionZis_ccw)Únamer   r   r   r   Úis_ccw_impl   s   
r   )N)Únumpyr   r   r   r   r   r   r   r   Ú<module>   s    	