The xCellerator Project
sortPolygon mPower Reference Home

sortPolygon[{{x1,y1,z1},{x2,y2,z2},...}] sorts the vertices of a polygon counter-clockwise about their centroid. The points are assumed to be the vertices of a polygon. If the original polygon is closed (i.e., if the first point and the last point are the same) then the list of vertices returned is also closed.


SourceForge.net Logo






[25-Dec-2005]