MCPcopy Index your code
hub / github.com/plotly/plotly.js / orientation_3

Function orientation_3

stackgl_modules/index.js:34631–34638  ·  view source on GitHub ↗
(sum, prod, scale, sub)

Source from the content-addressed store, hash-verified

34629var ERRBOUND4 = (7.0 + 56.0 * EPSILON) * EPSILON
34630
34631function orientation_3(sum, prod, scale, sub) {
34632 return function orientation3Exact(m0, m1, m2) {
34633 var p = sum(sum(prod(m1[1], m2[0]), prod(-m2[1], m1[0])), sum(prod(m0[1], m1[0]), prod(-m1[1], m0[0])))
34634 var n = sum(prod(m0[1], m2[0]), prod(-m2[1], m0[0]))
34635 var d = sub(p, n)
34636 return d[d.length - 1]
34637 }
34638}
34639
34640function orientation_4(sum, prod, scale, sub) {
34641 return function orientation4Exact(m0, m1, m2, m3) {

Callers

nothing calls this directly

Calls 2

sumFunction · 0.85
subFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…