Transformations.rotatex

You're seeing just the function rotatex, go back to Transformations module for more information.

Rotate a shape by angle about 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.rotatex(45)
    #Matrex[4×8]
                                                                  
      0.0     1.0     1.0     0.0     0.0     1.0     1.0     0.0 
      0.0     0.0 -0.8509 -0.8509 0.52532 0.52532-0.32558-0.32558 
      0.0     0.0 0.52532 0.52532  0.8509  0.8509 1.37623 1.37623 
      1.0     1.0     1.0     1.0     1.0     1.0     1.0     1.0