Computer graphics line segmentation based on liang-barsky