Function File: [xcw,ycw] = poly2cw (x,y)

Convert Polygons to clockwise contours(polygons).

x/y is a cell array or NaN delimited vector of polygons, representing the x/y coordinates of the points. If x1 and y1 can contain multiple contours, represented either as NaN-separated vectors or as cell arrays, then each contour is converted to counter-clockwise ordering. xccw/yccw has the same format of the input.

See also: poly2ccw,ispolycw.

Package: geometry