7 lines
208 B
JavaScript
Raw Normal View History

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