treams.special.car2cyl¶
- treams.special.car2cyl(r) = <ufunc 'car2cyl'>¶
Convert cartesian to cylindrical coordinates
The cartesian coordinates \((x, y, z)\) are converted to \((\rho, \varphi, z)\) with \(x = \rho \cos \varphi\) and \(y = \rho \sin \varphi\).
- Parameters:
r (float, 3-array) – Cartesian coordinates in 3-dimensional space
- Returns:
float, 3-array