A mechanical device that transforms rotational motion into linear motion or the other way around is called a rack and pi