A rack and pinion mechanism is used to transform rotary motion into linear motion and vice versa. A round spur gear, the pinion, meshes with a spur gear which has teeth set in a straight line. The rack and pinion gears are used to convert rotation into linear motion.