getCenter

Writes the center of the line segment into target.

Return

target.