官术网_书友最值得收藏!

31. Point-segment distance

Write a program that determines the closest point and shortest distance between a point and a line segment. Let the user left-click twice to define the segment and right-click once to define the point. Draw the segment and point, and a dashed line showing the shortest distance, as shown in the following screenshot:

主站蜘蛛池模板: 夏河县| 育儿| 金乡县| 沧州市| 留坝县| 宿州市| 瑞安市| 泽普县| 双柏县| 巫溪县| 峨山| 黄陵县| 宜春市| 湄潭县| 临湘市| 衡阳市| 彭山县| 荣成市| 潼关县| 莆田市| 金溪县| 共和县| 阿克陶县| 扶沟县| 江山市| 普宁市| 喀喇| 姜堰市| 临清市| 雅江县| 广平县| 泰州市| 大余县| 巴里| 鲜城| 民勤县| 赣榆县| 高州市| 绥宁县| 武夷山市| 朝阳县|