convert a series of points to LineSegment2D

C# | Visual Basic | Visual C++ |
public static LineSegment2D<D>[] PolyLine<D>( Point2D<D>[] points, bool closed ) where D : new(), IComparable
Public Shared Function PolyLine(Of D As {New, IComparable}) ( _ points As Point2D(Of D)(), _ closed As Boolean _ ) As LineSegment2D(Of D)()
public: generic<typename D> where D : gcnew(), IComparable static array<LineSegment2D<D>^>^ PolyLine( array<Point2D<D>^>^ points, bool closed )

- D
- the depth of the point

array of LineSegment2D