4 lines
220 B
JavaScript
Raw Permalink Normal View History

2026-05-31 13:21:13 +02:00
import { radiansToDegrees } from './radians-to-degrees';
import { zeroPoint } from './inc';
export const angle = (a, b = zeroPoint) => radiansToDegrees(Math.atan2(b.y - a.y, b.x - a.x));
//# sourceMappingURL=angle.js.map