MCPcopy Create free account
hub / github.com/idank/explainshell / isLeft

Function isLeft

explainshell/web/static/js/d3.v3.js:2691–2693  ·  view source on GitHub ↗
(a, b, c)

Source from the content-addressed store, hash-verified

2689 return wn !== 0;
2690 }
2691 function isLeft(a, b, c) {
2692 return (b[0] - a[0]) * (c[1] - a[1]) - (c[0] - a[0]) * (b[1] - a[1]);
2693 }
2694 function interpolate(from, to, direction, listener) {
2695 var a = 0, a1 = 0;
2696 if (from == null || (a = corner(from, direction)) !== (a1 = corner(to, direction)) || comparePoints(from, to) < 0 ^ direction > 0) {

Callers 1

insidePolygonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected