3
®?d]Ï  ã               @   s   d d„ Z dd„ ZdS )c                sP   | j j\‰ ‰ˆ jˆ d ƒ ˆjˆd ƒ t‡ ‡fdd„tdt| j ƒƒD ƒƒd S )z„Return the signed area enclosed by a ring in linear time using the 
    algorithm at: http://www.cgafaq.info/wiki/Polygon_Area.
    é   c             3   s.   | ]&}ˆ | ˆ|d   ˆ|d     V  qdS )r   N© )Ú.0Úi)ÚxsÚysr   ú9/tmp/pip-build-op5p2y5_/shapely/shapely/algorithms/cga.pyú	<genexpr>	   s    zsigned_area.<locals>.<genexpr>g       @)ZcoordsZxyÚappendÚsumÚrangeÚlen)Úringr   )r   r   r   Úsigned_area   s    r   c             C   s   dd„ }|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_opr   )Únamer   r   r   r   Úis_ccw_impl   s    r   N)r   r   r   r   r   r   Ú<module>   s   	