Euclidean %1 -0.0176873 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, arg3 ): # Calculate whatever you want to show here, and return it. # For example, to implement a mid point, you would put x1=arg1.coordinate().x x2=arg2.coordinate().x x3=arg3.coordinate().x y1=arg1.coordinate().y y2=arg2.coordinate().y y3=arg3.coordinate().y s=abs((x1-x3)*(y2-y3)-(x2-x3)*(y1-y3))/2 a=sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)) b=sqrt((x1-x3)*(x1-x3)+(y1-y3)*(y1-y3)) c=sqrt((x2-x3)*(x2-x3)+(y2-y3)*(y2-y3)) w=acos((a*a+c*c-b*b)/(2*a*c))/3 t=Coordinate() t.x=x2+(x1-x2)*cos(w)-(y1-y2)*sin(w) t.y=y2+(x1-x2)*sin(w)+(y1-y2)*cos(w) z=Coordinate() z.x=x2 z.y=y2 return Line(z,t) # return Point( ( arg1.coordinate() + arg2.coordinate() ) / 2 ) # Please refer to the manual for more information. A1 C1 0 -5.32743 -0.00269322 -0.00881882 %1 0 0.0185777 19.8107 0.00042721 0.0220655 225.701 -215.042 -0.00439051 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 x1=arg1.coordinate().x x2=arg2.coordinate().x x3=arg3.coordinate().x y1=arg1.coordinate().y y2=arg2.coordinate().y y3=arg3.coordinate().y s=abs((x1-x3)*(y2-y3)-(x2-x3)*(y1-y3))/2 a=sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)) b=sqrt((x1-x3)*(x1-x3)+(y1-y3)*(y1-y3)) c=sqrt((x2-x3)*(x2-x3)+(y2-y3)*(y2-y3)) w=2*acos((a*a+c*c-b*b)/(2*a*c))/3 t=Coordinate() t.x=x2+(x1-x2)*cos(w)-(y1-y2)*sin(w) t.y=y2+(x1-x2)*sin(w)+(y1-y2)*cos(w) z=Coordinate() z.x=x2 z.y=y2 return Line(z,t) # return Point( ( arg1.coordinate() + arg2.coordinate() ) / 2 ) # Please refer to the manual for more information. 0.00717969 C -42.3665 %1 %1 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 x1=arg1.coordinate().x x2=arg2.coordinate().x x3=arg3.coordinate().x y1=arg1.coordinate().y y2=arg2.coordinate().y y3=arg3.coordinate().y s=abs((x1-x3)*(y2-y3)-(x2-x3)*(y1-y3))/2 a=sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)) b=sqrt((x1-x3)*(x1-x3)+(y1-y3)*(y1-y3)) c=sqrt((x2-x3)*(x2-x3)+(y2-y3)*(y2-y3)) w=acos((a*a+c*c-b*b)/(2*a*c))/3 t=Coordinate() t.x=x2+(x1-x2)*cos(w)-(y1-y2)*sin(w) t.y=y2+(x1-x2)*sin(w)+(y1-y2)*cos(w) z=Coordinate() z.x=x2 z.y=y2 return Line(z,t) # return Point( ( arg1.coordinate() + arg2.coordinate() ) / 2 ) # Please refer to the manual for more information. A 20.1336 1 0 B1 B %1 -303.647 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 x1=arg1.coordinate().x x2=arg2.coordinate().x x3=arg3.coordinate().x y1=arg1.coordinate().y y2=arg2.coordinate().y y3=arg3.coordinate().y s=abs((x1-x3)*(y2-y3)-(x2-x3)*(y1-y3))/2 a=sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)) b=sqrt((x1-x3)*(x1-x3)+(y1-y3)*(y1-y3)) c=sqrt((x2-x3)*(x2-x3)+(y2-y3)*(y2-y3)) w=2*acos((a*a+c*c-b*b)/(2*a*c))/3 t=Coordinate() t.x=x2+(x1-x2)*cos(w)-(y1-y2)*sin(w) t.y=y2+(x1-x2)*sin(w)+(y1-y2)*cos(w) z=Coordinate() z.x=x2 z.y=y2 return Line(z,t) # return Point( ( arg1.coordinate() + arg2.coordinate() ) / 2 ) # Please refer to the manual for more information. %1 0.00464611 20.2013 -0.0316414 0 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 x1=arg1.coordinate().x x2=arg2.coordinate().x x3=arg3.coordinate().x y1=arg1.coordinate().y y2=arg2.coordinate().y y3=arg3.coordinate().y s=abs((x1-x3)*(y2-y3)-(x2-x3)*(y1-y3))/2 a=sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)) b=sqrt((x1-x3)*(x1-x3)+(y1-y3)*(y1-y3)) c=sqrt((x2-x3)*(x2-x3)+(y2-y3)*(y2-y3)) w=acos((a*a+c*c-b*b)/(2*a*c))/3 t=Coordinate() t.x=x2+(x1-x2)*cos(w)-(y1-y2)*sin(w) t.y=y2+(x1-x2)*sin(w)+(y1-y2)*cos(w) z=Coordinate() z.x=x2 z.y=y2 return Line(z,t) # return Point( ( arg1.coordinate() + arg2.coordinate() ) / 2 ) # Please refer to the manual for more information. 0 0 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 x1=arg1.coordinate().x x2=arg2.coordinate().x x3=arg3.coordinate().x y1=arg1.coordinate().y y2=arg2.coordinate().y y3=arg3.coordinate().y s=abs((x1-x3)*(y2-y3)-(x2-x3)*(y1-y3))/2 a=sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)) b=sqrt((x1-x3)*(x1-x3)+(y1-y3)*(y1-y3)) c=sqrt((x2-x3)*(x2-x3)+(y2-y3)*(y2-y3)) w=2*acos((a*a+c*c-b*b)/(2*a*c))/3 t=Coordinate() t.x=x2+(x1-x2)*cos(w)-(y1-y2)*sin(w) t.y=y2+(x1-x2)*sin(w)+(y1-y2)*cos(w) z=Coordinate() z.x=x2 z.y=y2 return Line(z,t) # return Point( ( arg1.coordinate() + arg2.coordinate() ) / 2 ) # Please refer to the manual for more information.