Поворот точки def calc( arg1, arg2, arg3 ): # Calculate whatever you want to show here, and return it. # For example, to implement a mid point, you would put # this code here: b=Coordinate() b.x=arg1.coordinate().x b.y=arg1.coordinate().y c=Coordinate() c.x=arg2.coordinate().x c.y=arg2.coordinate().y f=arg3.size() x1=b.x+(c.x-b.x)*cos(f)-(c.y-b.y)*sin(f) y1=b.y+(c.x-b.x)*sin(f)+(c.y-b.y)*cos(f) return Point(Coordinate(x1,y1)) # Please refer to the manual for more information. 4 5 1 2 3