colour.algebra.cartesian_to_cylindrical¶
-
colour.algebra.
cartesian_to_cylindrical
(a)[source]¶ Transforms given Cartesian coordinates array \(xyz\) to Cylindrical coordinates array \(\rho\phi z\) (azimuth, radial distance and height).
Parameters: a (array_like) – Cartesian coordinates array \(xyz\) to transform. Returns: Cylindrical coordinates array \(\rho\phi z\). Return type: ndarray References
Examples
>>> a = np.array([3, 1, 6]) >>> cartesian_to_cylindrical(a) # doctest: +ELLIPSIS array([ 3.1622776..., 0.3217505..., 6. ])