MCPcopy Create free account
hub / github.com/microsoft/SandDance / within

Function within

docs/app/js/sanddance-app.js:130631–130633  ·  view source on GitHub ↗
(p, q, r)

Source from the content-addressed store, hash-verified

130629 return (b[0] - a[0]) * (c[1] - a[1]) === (c[0] - a[0]) * (b[1] - a[1]);
130630}
130631function within(p, q, r) {
130632 return p <= q && q <= r || r <= q && q <= p;
130633}
130634function quantize(k, nice, zero) {
130635 return function(values) {
130636 var ex = (0, _vegaUtil.extent)(values), start = zero ? Math.min(ex[0], 0) : ex[0], stop = ex[1], span = stop - start, step = nice ? (0, _d3Array.tickStep)(start, stop, k) : span / (k + 1);

Callers 1

segmentContainsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected