Commit 1be3d97a authored by Ahmad Reza Cheraghi's avatar Ahmad Reza Cheraghi
Browse files


parent b71d22f2
......@@ -68,8 +68,8 @@ class TriangularGrid(Grid):
def get_scaling(self):
return 1.0, math.sqrt(3/4), 1.0
def get_distance(self,start,end):
if start[1] == end[1] and start[0] != end[0]:
return abs(end[0] - start[0])
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment