math3d-react icon indicating copy to clipboard operation
math3d-react copied to clipboard

Add support for spherical coordinates

Open jemsurfer opened this issue 3 years ago • 2 comments

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!

jemsurfer avatar May 17 '22 16:05 jemsurfer

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.

ChristopherChudzicki avatar May 20 '22 12:05 ChristopherChudzicki

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.

jemsurfer avatar May 20 '22 17:05 jemsurfer