Extract box from lineSegment. Fixes #5.