13 Jun 2005
27 Oct 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 22.214.171.1241 (R2008b)
% Copyright 2009 INRA - Cepia Software Platform.
rev = poly([1 end:-1:2], :);