Subdividing a Curve

Subdividing the line whose endpoints are (x0, y0) and (x1, y1) is achieved by computing the coordinates of a new point (xa, ya) from the coordinates of two given points.