Function File: [xccw,yccw] = poly2ccw (x,y)

Convert Polygons to counterclockwise 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: poly2cw,ispolycw.

Package: geometry