Adding some math manipulation stuff. Particularly for coordinates
Spherical and 3D Cartesian coordinates seem to fundamentally work. Can easily convert between the two and compare