Find rotation axis

With this code I tried in various ways to find the rotation axis
Code Monday 17:44