mafs icon indicating copy to clipboard operation
mafs copied to clipboard

Polar coordinates

Open stevenpetryk opened this issue 4 years ago • 5 comments

Cartesian coordinates aren't enough—gotta draw some circles too.

stevenpetryk avatar Sep 13 '20 21:09 stevenpetryk

I presume you don't just want cartesian coordinates to show up, but also to actually be able to plot points using polar coordinates?

zawie avatar Oct 12 '20 04:10 zawie

I think so. But it would likely be a different component for that. Something like:

<Point point={[1, 1]} />
<Point.Polar radius={Math.sqrt(2)} theta={Math.PI / 4} />

stevenpetryk avatar Oct 19 '20 19:10 stevenpetryk

In other words, I want to keep the coordinate system decoupled from the components as much as I can.

stevenpetryk avatar Oct 19 '20 19:10 stevenpetryk

how about like: <Point.Polar point={[Math.sqrt(2),Math.PI / 4]} /> to reduce bulk. But yes definitely.

zawie avatar Oct 20 '20 23:10 zawie

You're right—I should keep it as a vector.

stevenpetryk avatar Oct 21 '20 23:10 stevenpetryk