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

Function orient

docs/app/js/sanddance-app.js:140162–140165  ·  view source on GitHub ↗
(rx, ry, qx, qy, px, py)

Source from the content-addressed store, hash-verified

140160}
140161// a more robust orientation test that's stable in a given triangle (to fix robustness issues)
140162function orient(rx, ry, qx, qy, px, py) {
140163 const sign = orientIfSure(px, py, rx, ry, qx, qy) || orientIfSure(rx, ry, qx, qy, px, py) || orientIfSure(qx, qy, px, py, rx, ry);
140164 return sign < 0;
140165}
140166function inCircle(ax, ay, bx, by, cx, cy, px, py) {
140167 const dx = ax - px;
140168 const dy = ay - py;

Callers 1

updateMethod · 0.70

Calls 1

orientIfSureFunction · 0.70

Tested by

no test coverage detected