matrix_from_scale_factors
-
compas.geometry.
matrix_from_scale_factors
(scale_factors)[source] Returns a 4x4 scaling transformation.
- Parameters
scale_factors (list of float) – Three numbers defining the scaling factors in x, y, and z respectively.
Examples
>>> Sc = matrix_from_scale_factors([1, 2, 3])
Notes
[ 0 . . . ] [ . 1 . . ] [ . . 2 . ] [ . . . . ]