MCPcopy
hub / github.com/methodofaction/Method-Draw / m

Function m

src/js/lib/canvg.js:1348–1348  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

1346 );
1347 // vector magnitude
1348 var m = function(v) { return Math.sqrt(Math.pow(v[0],2) + Math.pow(v[1],2)); }
1349 // ratio between two vectors
1350 var r = function(u, v) { return (u[0]*v[0]+u[1]*v[1]) / (m(u)*m(v)) }
1351 // angle between two vectors

Callers 1

rFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected