Transformations.scale
You're seeing just the function
scale
, go back to Transformations module for more information.
Scale a shape by xs, ys and zs along the x, y and z axes.
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.scale(1,2,3)
#Matrex[4×8]
┌ ┐
│ 0.0 1.0 1.0 0.0 0.0 1.0 1.0 0.0 │
│ 0.0 0.0 0.0 0.0 2.0 2.0 2.0 2.0 │
│ 0.0 0.0 3.0 3.0 0.0 0.0 3.0 3.0 │
│ 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 │
└ ┘