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

28. Arrowheads

Write a program that lets the user click and drag to define a line segment. Add a tail to the segment's starting point and an arrowhead to its ending point, as shown in the following screenshot:

Hint: If <vx, vy> is a vector, then <vy, -vx> and <-vy, vx> are two vectors perpendicular to the original vector.
主站蜘蛛池模板: 云南省| 延寿县| 柳江县| 丹江口市| 马龙县| 竹北市| 江城| 长武县| 宜兴市| 卓资县| 定兴县| 麦盖提县| 梅州市| 镇康县| 陆丰市| 芜湖县| 巴里| 道孚县| 赤壁市| 利辛县| 利川市| 琼中| 凤阳县| 铅山县| 阳新县| 松江区| 赤城县| 浙江省| 隆林| 临猗县| 定西市| 溆浦县| 桃江县| 湘潭市| 万州区| 绥芬河市| 昌平区| 平塘县| 涡阳县| 桑日县| 青州市|