Midsegment calculator. Endpoint calculator for a two-dimensional straight line.