Summary: In this paper we consider a rotation which makes a straight line in the space a shaft and express it by base change of a linear space. This idea will be used to make algorithm, and we will show a couple of programs of Mathematica as examples.