Transformations.mirrorx
You're seeing just the function
mirrorx
, go back to Transformations module for more information.
Mirror a shape around the yz plane or the x-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.mirrorx()
#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 1.0 1.0 1.0 1.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 │
└ ┘