画线->通过line_position求出角度与中心值->通过distance_pp求出宽度->从而得知框形
dev_get_window (WindowHandle)
draw_line (WindowHandle, Row1, Column1, Row2, Column2)
disp_line (WindowHandle, Row1, Column1, Row2, Column2)
line_position (Row1, Column1, Row2, Column2, RowCenter, ColCenter, Length, Phi)
distance_pp (Row1, Column1, Row2, Column2, Distance)
gen_rectangle2 (Rectangle, RowCenter, ColCenter, Phi, Distance/2, 10)
原文:https://www.cnblogs.com/dingyd/p/13036315.html