We use the strategy to define a wirst and use the geometric method. In order to do that, we use the next isometric view:
As we can see, the first joint can be calculated as:
Then, we proceed with the thrid joint. As the method say we proyect the vector to the wirst on the x2-y2 plane. We get:
First, we note that
We construct a triangule with the sides
We solve the equation for
Then we examine the second and fourth joint. For this purpouse we use the next proyection:
From the image:
For
As above, we use another right triangule for
Finally for the last joint we know that the sum of every joint angle is the desired orientation:
We solve for