matrix_from_shear_entries

compas.geometry.matrix_from_shear_entries(shear_entries)[source]

Returns a shear matrix from the 3 factors for x-y, x-z, and y-z axes.

Parameters:
shear_entries[float, float, float]

The 3 shear factors for x-y, x-z, and y-z axes.

Returns:
list[list[float]]

A 4-by-4 transformation matrix.

Notes

[ .  0  1  . ]
[ .  .  2  . ]
[ .  .  .  . ]
[ .  .  .  . ]

Examples

>>> Sh = matrix_from_shear_entries([1, 2, 3])