Home > freetb4matlab > geometry > inpolygon.m

inpolygon

PURPOSE ^

%

SYNOPSIS ^

function [IN, ON] = inpolygon (X, Y, xv, yv)

DESCRIPTION ^

% -*- 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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sat 16-May-2009 00:04:49 by m2html © 2003