Euclidean 1.86243 1 -5.33021 -5.15895 -11.8532 3 3 4 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. 2 3 2 4 -0.721711 -1 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. -1 -1 4 -5.19876 1 2 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. 1