Значок перпендикуляра def calc( arg1, arg2 ): # Calculate whatever you want to show here, and return it. # For example, to implement a mid point, you would put x2=arg2.coordinate().x x1=arg1.coordinate().x y2=arg2.coordinate().y y1=arg1.coordinate().y d=sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1)) z=Coordinate() z.x=x2-x1 z.y=y2-y1 return Point( arg1.coordinate() + z / (9*d) ) # Calculate whatever you want to show here, and return it. # For example, to implement a mid point, you would put # this code here: # return Point( ( arg1.coordinate() + arg2.coordinate() ) / 2 ) # Please refer to the manual for more information. 3 4 1 2 1 5 6 7 1 1 5 9 7 -1 8 10 11 4 12 1 13 2 1 3 14 15 14 16 14 17