line clipping algorithm in computer graphics in c