CoordinateTransformations.jl
CoordinateTransformations.jl copied to clipboard
Add Alternative Spherical angle conventions
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}
?
See also #25 and #68.
+1 this would be really useful.
For future reference, if you're used to this:
Then you would construct:
Spherical(1, ϕ, π/2-θ)