@c DO NOT EDIT!  Generated automatically by munge-texi.

@c Copyright (C) 2007 John W. Eaton
@c This is part of the Octave manual.
@c For copying conditions, see the file gpl.texi.

@node Geometry
@chapter Geometry

@anchor{doc-polyarea}
@deftypefn {Function File} {} polyarea (@var{x}, @var{y})
@deftypefnx {Function File} {} polyarea (@var{x}, @var{y}, @var{dim})

Determines area of a polygon by triangle method. The variables
@var{x} and @var{y} define the vertex pairs, and must therefore have
the same shape. Then might be either vectors or arrays. If they are
arrays then the columns of @var{x} and @var{y} are treated seperately
and an area returned for each.

If the optional @var{dim} argument is given, then @code{polyarea}
works along this dimension of the arrays @var{x} and @var{y}.

@end deftypefn

