site/node_modules/d3-shape/src/pointRadial.js

4 lines
101 B
JavaScript
Raw Normal View History

2024-10-14 08:09:33 +02:00
export default function(x, y) {
return [(y = +y) * Math.cos(x -= Math.PI / 2), y * Math.sin(x)];
}