MCPcopy Create free account
hub / github.com/corbanbrook/dsp.js / createPVectorMethod

Function createPVectorMethod

examples/js/processing.js:38–44  ·  view source on GitHub ↗
(method)

Source from the content-addressed store, hash-verified

36 this.z = z || 0;
37 },
38 createPVectorMethod = function(method) {
39 return function(v1, v2) {
40 var v = v1.get();
41 v[method](v2);
42 return v;
43 };
44 },
45 createSimplePVectorMethod = function(method) {
46 return function(v1, v2) {
47 return v1[method](v2);

Callers 1

processing.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected