Ver. 2

Complete :
read the cosine, i.e., the 1st and 2nd element of the matrixStr
To-Do :
rotate the LEGO plates and LEGO bricks