Class MonotoneChainBuilder

Hierarchy: Object , MonotoneChainBuilder
public class MonotoneChainBuilder
Constructs MonotoneChains for sequences of Coordinates.

Other

  • version: 1.7
public static List getChains(Coordinate[] pts)
Computes a list of the MonotoneChains for a list of coordinates.
Parameters:
pts - pts the list of points to compute chains for
Returns:
a list of the monotone chains for the points
public static List getChains(Coordinate[] pts, Object context)
Computes a list of the MonotoneChains for a list of coordinates, attaching a context data object to each.
Parameters:
pts - pts the list of points to compute chains for
context - context a data object to attach to each chain
Returns:
a list of the monotone chains for the points