13 Jun 2005
01 Apr 2014)
Geometry library for matlab. Performs geometric computations on points, lines, circles, polygons...
function rev = reversePolygon(poly)
%REVERSEPOLYGON Reverse a polygon, by iterating vertices from the end
% POLY2 = reversePolygon(POLY)
% POLY2 has same vertices as POLY, but in different order. The first
% vertex of the polygon is still the same.
% See also
% polygons2d, reversePolyline
% Author: David Legland
% e-mail: firstname.lastname@example.org
% Created: 2009-06-30, using Matlab 126.96.36.1991 (R2008b)
% Copyright 2009 INRA - Cepia Software Platform.
rev = poly([1 end:-1:2], :);