convert a series of MCvPoint to LineSegment2D

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

- D
- the depth of the point

array of LineSegment2D