Class MonotoneChainBuilder
Constructs MonotoneChains for sequences of Coordinates.
Inherited Members
Namespace: NetTopologySuite.Index.Chain
Assembly: NetTopologySuite.dll
Syntax
public class MonotoneChainBuilder
Methods
| Improve this Doc View SourceGetChains(Coordinate[])
Computes a list of the MonotoneChains for a list of coordinates.
Declaration
public static ReadOnlyCollection<MonotoneChain> GetChains(Coordinate[] pts)
Parameters
Type | Name | Description |
---|---|---|
Coordinate[] | pts | The list of points to compute chains for |
Returns
Type | Description |
---|---|
ReadOnlyCollection<MonotoneChain> | A list of the monotone chains for the points |
GetChains(Coordinate[], Object)
Return a list of the MonotoneChain
s
for the given list of coordinates.
Declaration
public static ReadOnlyCollection<MonotoneChain> GetChains(Coordinate[] pts, object context)
Parameters
Type | Name | Description |
---|---|---|
Coordinate[] | pts | The list of points to compute chains for |
Object | context | A data object to attach to each chain |
Returns
Type | Description |
---|---|
ReadOnlyCollection<MonotoneChain> | A list of the monotone chains for the points |
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.
Declaration
[Obsolete]
public static int[] GetChainStartIndices(Coordinate[] pts)
Parameters
Type | Name | Description |
---|---|---|
Coordinate[] | pts |
Returns
Type | Description |
---|---|
Int32[] |
ToIntArray(IList<Int32>)
Declaration
[Obsolete]
public static int[] ToIntArray(IList<int> list)
Parameters
Type | Name | Description |
---|---|---|
IList<Int32> | list |
Returns
Type | Description |
---|---|
Int32[] |