The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Unit: SDL_math2
Class: none
Declaration: function PolygonLength (InData: TPDblArray; Closed: boolean): double;

The function PolygonLength calculates the length of the polygon defined by the array InData. If the parameter Closed is set to TRUE a closed polygon is assumed (i.e. the last vertex of the polygon is connected to the first).

Hint: Please note that the points of the polygon have to be stored in the same order as they would be used when drawing the polygon.

Last Update: 2017-Okt-23