INNER CODE UNIT · Python
translate
fury-gl/fury · fury/actor/core.py:51
def translate(self, translation):
"""
Translate the actor by the given translation vector.
Parameters
----------
translation : tuple
Translation vector along the x, y, and z axes.
"""
if not isinstance(translation, (list, tuple, np.ndarray)):
raise ValueError("Translation must be a sequence of three values.")
translation = np.asarray(translation, dtype=np.float32)
if translation.shape != (3,):
raise ValueError("Translation must contain three values.")
translate(translation, actor=self)
def scale(self, scales):
"""