lineToX

Adds a line segment that goes to \(x\)-coordinate posX.