sph2cart

Contents

sph2cart#

Spherical to Cartesian coordinates

template<typename T1, typename T2, typename T3>
auto __MATX_INLINE__ matx::sph2cart(const T1 &theta, const T2 &phi, const T3 &r)#

Operator to compute cartesian coordiantes from spherical coordinates TODO

Template Parameters:
  • T1 – Operator type defining theta

  • T2 – Operator type defining phi

  • T3 – Operator type defining radius

Parameters:
  • theta – Operator defining theta

  • phi – Operator defining phi

  • r – Operator defining radius

Returns:

Tuple of operators for x, y, and z.

Examples#

auto [x, y, z] = sph2cart(theta, phi, r);