9 lines
323 B
JavaScript
Raw Permalink Normal View History

2026-05-31 13:21:13 +02:00
import { degreesToRadians } from './degrees-to-radians';
export const pointFromVector = (origin, angle, distance) => {
angle = degreesToRadians(angle);
return {
x: distance * Math.cos(angle) + origin.x,
y: distance * Math.sin(angle) + origin.y
};
};
//# sourceMappingURL=point-from-vector.js.map