I have 2 3d arrays and trying to rotate a desired axis of the first one around other 3d array (origin) in degrees and in clockwise direction. The following code block works