sort of delta robot/polygraph

The tube being fixed at one end and the other end of the tube moves then the moving end becomes a point on a sphere.

Look into spherical to rectangular conversion.