MCPcopy Create free account
hub / github.com/plotly/plotly.js / circumcenter

Function circumcenter

stackgl_modules/index.js:8824–8837  ·  view source on GitHub ↗
(points)

Source from the content-addressed store, hash-verified

8822}
8823
8824function circumcenter(points) {
8825 if(points.length === 0) {
8826 return []
8827 }
8828 var D = points[0].length
8829 var result = dup([D])
8830 var weights = barycentricCircumcenter(points)
8831 for(var i=0; i<points.length; ++i) {
8832 for(var j=0; j<D; ++j) {
8833 result[j] += points[i][j] * weights[i]
8834 }
8835 }
8836 return result
8837}
8838
8839circumcenter.barycenetric = barycentricCircumcenter
8840module.exports = circumcenter

Callers 1

circumradiusFunction · 0.85

Calls 1

barycentricCircumcenterFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…