mafs
mafs copied to clipboard
Polar coordinates
Cartesian coordinates aren't enough—gotta draw some circles too.
I presume you don't just want cartesian coordinates to show up, but also to actually be able to plot points using polar coordinates?
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} />
In other words, I want to keep the coordinate system decoupled from the components as much as I can.
how about like:
<Point.Polar point={[Math.sqrt(2),Math.PI / 4]} />
to reduce bulk.
But yes definitely.
You're right—I should keep it as a vector.