3D version is cylindrical coordinates

  • Conversion from rectangular to polar coordinates