
    Ogq                     "    d dl Zd dlZd ZddZy)    Nc                     t        j                  | j                        ddddf   }t        j                  ||d   g      j                  \  }}t        j
                  |dd |dd |dd z
  z        dz  S )zReturn 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yss       [/var/www/html/public_html/myphp/venv/lib/python3.12/site-packages/shapely/algorithms/cga.pysigned_arear      st     XXdkk"1bqb5)FYYq	*+--FB66"Qr(bfr#2w./0366    c                 R    d }t         j                  dk\  rt         j                  S |S )zPredicate implementationc                     t        |       dk\  S )Ng        )r   )r   s    r   	is_ccw_opzis_ccw_impl.<locals>.is_ccw_op   s    4 C''r   )      r   )shapelygeos_versionis_ccw)namer   s     r   is_ccw_implr      s'    ( y(~~r   )N)numpyr   r   r   r    r   r   <module>r       s     7	r   