The problem of rotating a point (x, y, z) in the coordinate system is a linear transformation.
That is to say, a matrix T maps points (x, y, z) to new coordinates (x', y', z') through T*(x, y, z).
The transformation matrix t about clockwise rotation of y axis 1 degree is
[cos(a) 0 sin(a) ]
[0 1 0 ]
[sin(a) 0 cos(a) ]
So t * (x, y, z) = (cos (a) x+sin (a) z, y, sin (a) x+cos (a) z)
For example, if a = 30, COS (a) = √ 3/2, and SIN (a) = 0.5.
Then the result of rotating point A (1, 1) clockwise by 30 degrees on the Y axis is (√ 3+1)/2, 1, (√ 3+ 1)/2). Other points can be calculated according to this method and formula.
The matrix T = rotates clockwise about the x axis by one degree.
[ 1 0 0 ]
[0 cos(a) sin(a) ]
[0 -sin(a) cos(a) ]
That is t * (x, y, z) = (x, cos (a) y+sin (a) z, -sin (a) y+cos (a) z)
Also follow the previous method and formula.