openlifu.geo.spherical_to_cartesian

openlifu.geo.spherical_to_cartesian(r: float, th: float, ph: float) Tuple[float, float, float][source]

Convert spherical coordinates to cartesian coordinates

Parameters:
  • r – the radial spherical coordinate

  • th – the polar spherical coordinate theta, aka the angle off the z-axis, aka the non-azimuthal spherical angle

  • ph – the azimuthal spherical coordinate phi

Returns the cartesian coordinates x,y,z

Angles are in radians.