ChristopherChudzicki / math3d-react

A user-friendly 3d graphing calculator for the web. Create, share, and animate 3d mathematical scenes.
https://www.math3d.org
Mozilla Public License 2.0
245 stars 34 forks source link

Add support for spherical coordinates #344

Open jemsurfer opened 2 years ago

jemsurfer commented 2 years ago

The spherical coordinate system gives a different way of writing 3d coordinates, and some more knobs to turn for graphing stuff, e.g using r=theta*phi etc.
I think math3d would be a lot more fun if these were implemented, let me know if they've already been implemented in a way I haven't realised. Thanks!

ChristopherChudzicki commented 2 years ago

Good question.

What sort of use are you thinking about for spherical coordinates? One idea that I can think of would be specifying a surface R(theta, phi).

When I've needed to do R(theta, phi) in the past, I've used a parametric surface and defined helper functions X(theta, phi), Y(theta, phi), etc. For example: https://www.math3d.org/bGaDrXVci

But certainly it would be nice if this were more convenient.

jemsurfer commented 2 years ago

Thanks for the reply. I was watching a 3blue1brown video on quaternions, https://odysee.com/@3Blue1Brown/what-are-quaternions-and-how-do-you and thought of making a demo on math3d, when I discovered it didn't support it directly, so I made this issue.