This image shows the process for computing segments.