UNPKG

popmotion

Version:

The animator's toolbox

7 lines 269 B
import { radiansToDegrees } from './radians-to-degrees'; import { zeroPoint } from './inc'; export var angle = function (a, b) { if (b === void 0) { b = zeroPoint; } return radiansToDegrees(Math.atan2(b.y - a.y, b.x - a.x)); }; //# sourceMappingURL=angle.js.map