added Line.isContiguous