pyvista.Transform.translation#
- property Transform.translation: tuple[float, float, float][source]#
Return the translation component of the current transformation
matrix.Added in version 0.47.
See also
Examples
Compose a translation and get the translation component.
>>> import pyvista as pv >>> trans = pv.Transform() + (1, 2, 3) >>> trans.translation (1.0, 2.0, 3.0)
Compose a second translation and get the component again.
>>> trans += (4, 5, 6) >>> trans.translation (5.0, 7.0, 9.0)