line clipping implemented