Transformations.rotatey
You're seeing just the function
rotatey
, go back to Transformations module for more information.
Rotate a shape by angle about the y 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.rotatey(45)
#Matrex[4×8]
┌ ┐
│ 0.0 0.52532 1.37623 0.8509 0.0 0.52532 1.37623 0.8509 │
│ 0.0 0.0 0.0 0.0 1.0 1.0 1.0 1.0 │
│ 0.0 -0.8509-0.32558 0.52532 0.0 -0.8509-0.32558 0.52532 │
│ 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 │
└ ┘