Table of Contents

Class MonotoneChainBuilder

Namespace
NetTopologySuite.Index.Chain
Assembly
NetTopologySuite.dll

Constructs MonotoneChains for sequences of Coordinates.

public class MonotoneChainBuilder
Inheritance
MonotoneChainBuilder
Inherited Members

Methods

GetChainStartIndices(Coordinate[])

Return an array containing lists of start/end indexes of the monotone chains for the given list of coordinates. The last entry in the array points to the end point of the point array, for use as a sentinel.

[Obsolete]
public static int[] GetChainStartIndices(Coordinate[] pts)

Parameters

pts Coordinate[]

Returns

int[]

GetChains(Coordinate[])

Computes a list of the MonotoneChains for a list of coordinates.

public static ReadOnlyCollection<MonotoneChain> GetChains(Coordinate[] pts)

Parameters

pts Coordinate[]

The list of points to compute chains for

Returns

ReadOnlyCollection<MonotoneChain>

A list of the monotone chains for the points

GetChains(Coordinate[], object)

Return a list of the MonotoneChains for the given list of coordinates.

public static ReadOnlyCollection<MonotoneChain> GetChains(Coordinate[] pts, object context)

Parameters

pts Coordinate[]

The list of points to compute chains for

context object

A data object to attach to each chain

Returns

ReadOnlyCollection<MonotoneChain>

A list of the monotone chains for the points

ToIntArray(IList<int>)

[Obsolete]
public static int[] ToIntArray(IList<int> list)

Parameters

list IList<int>

Returns

int[]