CoordinateTransformations.jl icon indicating copy to clipboard operation
CoordinateTransformations.jl copied to clipboard

Add Alternative Spherical angle conventions

Open jonalm opened this issue 3 years ago • 2 comments

Would you consider having an alternative Spherical coordinate conventions, in particular the one which (at least according to wikipedia https://en.wikipedia.org/wiki/Spherical_coordinate_system#Conventions) is common practice in physics (i.e. x = [r sin(theta) cos(phi), r sin(\theta)sin(\phi), r cos(theta)]). This could live along the current convention like SphericalPhysics or PhysicsSpherical, or by adding a type parameter which indicates the convention Spherical{T,A, Convension}?

jonalm avatar May 12 '21 21:05 jonalm

See also #25 and #68.

waldyrious avatar May 13 '21 09:05 waldyrious

+1 this would be really useful.

For future reference, if you're used to this:

image

Then you would construct:

Spherical(1, ϕ, π/2-θ)

marius311 avatar Dec 09 '22 00:12 marius311