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