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

Function a

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

Source from the content-addressed store, hash-verified

1350 var r = function(u, v) { return (u[0]*v[0]+u[1]*v[1]) / (m(u)*m(v)) }
1351 // angle between two vectors
1352 var a = function(u, v) { return (u[0]*v[1] < u[1]*v[0] ? -1 : 1) * Math.acos(r(u,v)); }
1353 // initial angle
1354 var a1 = a([1,0], [(currp.x-cpp.x)/rx,(currp.y-cpp.y)/ry]);
1355 // angle delta

Callers 4

buildFunction · 0.70
dFunction · 0.70
cFunction · 0.70

Calls 1

rFunction · 0.85

Tested by

no test coverage detected