Use x,y instead of indexes ir geometry
This commit is contained in:
parent
0da362d778
commit
c0ebccb5b4
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ def middle( pa, pb ):
|
|||
|
||||
|
||||
def euclidian_distance( ci, cj, graph = None):
|
||||
return math.sqrt( float(ci[0] - cj[0])**2 + float(ci[1] - cj[1])**2 )
|
||||
return math.sqrt( float( x(ci) - x(cj) )**2 + float( y(ci) - y(cj) )**2 )
|
||||
|
||||
|
||||
def linear_equation( p0, p1 ):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue