pointRadial.js 101 Bytes
Newer Older
YazhouChen's avatar
YazhouChen committed
1 2 3
export default function(x, y) {
  return [(y = +y) * Math.cos(x -= Math.PI / 2), y * Math.sin(x)];
}