site/node_modules/d3-shape/src/pointRadial.js
2024-10-14 08:09:33 +02:00

3 lines
101 B
JavaScript

export default function(x, y) {
return [(y = +y) * Math.cos(x -= Math.PI / 2), y * Math.sin(x)];
}