colour.algebra.cylindrical_to_cartesian¶
-
colour.algebra.
cylindrical_to_cartesian
(a)[source]¶ Transforms given Cylindrical coordinates array \(\rho\phi z\) (azimuth, radial distance and height) to Cartesian coordinates array \(xyz\).
- Parameters
a (array_like) – Cylindrical coordinates array \(\rho\phi z\) to transform.
- Returns
Cartesian coordinates array \(xyz\).
- Return type
ndarray
References
Examples
>>> a = np.array([3.16227766, 0.32175055, 6.00000000]) >>> cylindrical_to_cartesian(a) array([ 3. , 0.9999999..., 6. ])