% -*- texinfo -*- % @deftypefn {Function File} {[@var{in}, @var{on}] =} inpolygon (@var{x}, @var{y}, @var{xv}, @var{xy}) % % For a polygon defined by @code{(@var{xv}, @var{yv})} points, determine % if the points @code{(@var{x}, @var{y})} are inside or outside the polygon. % The variables @var{x}, @var{y}, must have the same dimension. The optional % output @var{on} gives the points that are on the polygon. % % @end deftypefn