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