openlifu.geo.spherical_to_cartesian_vectorized¶
- openlifu.geo.spherical_to_cartesian_vectorized(p: ndarray) ndarray[source]¶
Convert spherical coordinates to cartesian coordinates
- Parameters:
p – an array of shape (…,3), where the last axis describes point spherical coordinates r, theta, phi, where: r is the radial spherical coordinate theta is the polar spherical coordinate, aka the angle off the z-axis, aka the non-azimuthal spherical angle phi is the azimuthal spherical coordinate
Returns the cartesian coordinates x,y,z
Angles are in radians.