MCPcopy Index your code
hub / github.com/microsoft/SandDance / comparePoint

Function comparePoint

docs/app/js/sanddance-app.js:133085–133088  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

133083 return comparePoint(a.x, b.x);
133084 }
133085 function comparePoint(a, b) {
133086 var ca = corner(a, 1), cb = corner(b, 1);
133087 return ca !== cb ? ca - cb : ca === 0 ? b[1] - a[1] : ca === 1 ? a[0] - b[0] : ca === 2 ? a[1] - b[1] : b[0] - a[0];
133088 }
133089 return function(stream) {
133090 var activeStream = stream, bufferStream = (0, _bufferJsDefault.default)(), segments, polygon, ring1, x__, y__, v__, x_, y_, v_, first, clean;
133091 var clipStream = {

Callers 2

interpolateFunction · 0.70
compareIntersectionFunction · 0.70

Calls 1

cornerFunction · 0.70

Tested by

no test coverage detected