A geometric interpretation of the Riemann-Stieltjes integral