搜索资源列表
Cohen-Sutherland
- 程序运行Cohen-Sutherland线段裁剪算法 ,所用坐标系为笛卡尔直角坐标系. 起始状:用户输入所画线段的起点和终点坐标 结束状态:程序打印出裁剪以后的线段-Program runs Cohen-Sutherland Line Clipping algorithm, used for the Cartesian coordinates Cartesian coordinate system. Start-shaped: the user to enter the draw
drawLine
- 程序运行后生成500×500的窗口,可在窗口中实现橡皮筋功能的直线绘制,并实现矩形选框剪裁功能。左键键拖动绘制直线,按下右键可实现橡皮筋的拖拽,中键可以拖动绘制矩形选框,配合键盘上C键可以实现对直线的剪裁。-Generated after the program runs 500 × 500 window, can be achieved in the window rubber band drawing a straight line features, and to achieve tail