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

Function sign

docs/app/js/sanddance-app.js:102052–102054  ·  view source on GitHub ↗
(num)

Source from the content-addressed store, hash-verified

102050 return q.x <= Math.max(p.x, r.x) && q.x >= Math.min(p.x, r.x) && q.y <= Math.max(p.y, r.y) && q.y >= Math.min(p.y, r.y);
102051}
102052function sign(num) {
102053 return num > 0 ? 1 : num < 0 ? -1 : 0;
102054}
102055function intersectsPolygon(a, b) {
102056 let p = a;
102057 do {

Callers 2

intersectsFunction · 0.70
slope3Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected