CLIPPOLYGONHP Clip a polygon with a Half-plane defined by a directed line.

   POLY2 = clipPolygonHP(POLY, LINE)
   POLY is a [Nx2] array of points, and LINE is given as [x0 y0 dx dy].
   The result POLY2 is also an array of points, sometimes smaller than
   poly, and that can be [0x2] (empty polygon).

   See also:
   polygons2d, clipPolygon

 ---------
 author : David Legland 
 created the 31/07/2005.
 Copyright 2010 INRA - Cepia Software Platform.

Package: matgeom