A slider-crank linkage is a four-link mechanism with three revolute joints and one
prismatic, or sliding, joint. The rotation of the crank drives the linear movement
the slider, or the expansion of gases against a sliding piston in a cylinder can
drive the rotation of the crank. There are two types of slider-cranks: in-line and
offset.