Transformation.from_list
-
classmethod
Transformation.from_list(numbers)[source] Creates a
Transformationfrom a list of 16 numbers.- Parameters
- Returns
Transformation – The
Transformationobject.
Examples
>>> numbers = [1, 0, 0, 3, 0, 1, 0, 4, 0, 0, 1, 5, 0, 0, 0, 1] >>> T = Transformation.from_list(numbers)Notes
Since the transformation matrix follows the row-major order, the translational components must be at the list’s indices 3, 7, 11.