MCPcopy Create free account
hub / github.com/breck7/scroll / lexicographicOrder

Function lexicographicOrder

external/.d3.js:14354–14356  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

14352}
14353
14354function lexicographicOrder(a, b) {
14355 return a[0] - b[0] || a[1] - b[1];
14356}
14357
14358// Computes the upper convex hull per the monotone chain algorithm.
14359// Assumes points.length >= 3, is sorted by x, unique in y.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected