Transformations.shearz
You're seeing just the function
shearz
, go back to Transformations module for more information.
Shear a shape by a factor of sx, sy along the x and y axes about the z axis.
Examples
iex(1)> shape = Transformations.matrix([
[0,1,1,0,0,1,1,0],
[0,0,0,0,1,1,1,1],
[0,0,1,1,0,0,1,1],
[1,1,1,1,1,1,1,1]
])
shape |> Transformations.shearz(2,3)
#Matrex[4×8]
┌ ┐
│ 0.0 1.0 3.0 2.0 0.0 1.0 3.0 2.0 │
│ 0.0 0.0 3.0 3.0 1.0 1.0 4.0 4.0 │
│ 0.0 0.0 1.0 1.0 0.0 0.0 1.0 1.0 │
│ 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 │
└ ┘