cart2sph#
Cartesian coordinates to spherical
-
template<typename T1, typename T2, typename T3>
auto __MATX_INLINE__ matx::cart2sph(const T1 &x, const T2 &y, const T3 &z)# Operator to compute spherical cooridantes based on cartisian coordinates
- Template Parameters:
T1 – Operator type defining x
T2 – Operator type defining y
T3 – Operator type defining z
- Parameters:
x – Operator defining x
y – Operator defining y
z – Operator defining z
- Returns:
Tuple of operators for theta, phi, and r.
Examples#
auto [theta, phi, r] = cart2sph(xi, yi, zi);