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

Function orientation_4

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

Source from the content-addressed store, hash-verified

34638}
34639
34640function orientation_4(sum, prod, scale, sub) {
34641 return function orientation4Exact(m0, m1, m2, m3) {
34642 var p = sum(sum(scale(sum(prod(m2[1], m3[0]), prod(-m3[1], m2[0])), m1[2]), sum(scale(sum(prod(m1[1], m3[0]), prod(-m3[1], m1[0])), -m2[2]), scale(sum(prod(m1[1], m2[0]), prod(-m2[1], m1[0])), m3[2]))), sum(scale(sum(prod(m1[1], m3[0]), prod(-m3[1], m1[0])), m0[2]), sum(scale(sum(prod(m0[1], m3[0]), prod(-m3[1], m0[0])), -m1[2]), scale(sum(prod(m0[1], m1[0]), prod(-m1[1], m0[0])), m3[2]))))
34643 var n = sum(sum(scale(sum(prod(m2[1], m3[0]), prod(-m3[1], m2[0])), m0[2]), sum(scale(sum(prod(m0[1], m3[0]), prod(-m3[1], m0[0])), -m2[2]), scale(sum(prod(m0[1], m2[0]), prod(-m2[1], m0[0])), m3[2]))), sum(scale(sum(prod(m1[1], m2[0]), prod(-m2[1], m1[0])), m0[2]), sum(scale(sum(prod(m0[1], m2[0]), prod(-m2[1], m0[0])), -m1[2]), scale(sum(prod(m0[1], m1[0]), prod(-m1[1], m0[0])), m2[2]))))
34644 var d = sub(p, n)
34645 return d[d.length - 1]
34646 }
34647}
34648
34649function orientation_5(sum, prod, scale, sub) {
34650 return function orientation5Exact(m0, m1, m2, m3, m4) {

Callers

nothing calls this directly

Calls 3

sumFunction · 0.85
subFunction · 0.85
scaleFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…