Euclidean -1 -1 -1 -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 1 -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 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 1 1 1 0.516788 -1 1 1 -1 -1 -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. 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 1 -1 -1 1 1 1 2 1 2 3 1 2 4 2 3 0.516788 3 3 4 3 2 0.516788 -1 2 3 2 1 3 -1 1 1 0.516788 3 3 1 2 1 1 -1 1 3 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 2 4 1 2 -1 0.516788 -1 2 3 2 2 -1 1 1 3 2 4 2.60861 -8.43423 1 2 2.4924 1 3 -6.50763 5.7768 1 4 -1 -2.55045 4 0 1 0.516788