MCPcopy
hub / github.com/liabru/matter-js / _mean

Function _mean

src/render/Render.js:1466–1472  ·  view source on GitHub ↗
(values)

Source from the content-addressed store, hash-verified

1464 * @return {Number} the mean of given values
1465 */
1466 var _mean = function(values) {
1467 var result = 0;
1468 for (var i = 0; i < values.length; i += 1) {
1469 result += values[i];
1470 }
1471 return (result / values.length) || 0;
1472 };
1473
1474 /**
1475 * @method _createCanvas

Callers 1

Render.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…