In the variable displacement axial piston pump, either the swashplate or the barrel may pivot back and forth to change its angle to the input shaft. The change of the angle will change the length of the stroke of the piston. Therefore, the change of the angle will change the output flow even though the shaft speed is held constant.