Update algorithm.py
Methods str of point and linesegment are now operators
This commit is contained in:
@@ -133,11 +133,11 @@ class NearestNeighborsSweep(Algorithm):
|
||||
for i, pnt in enumerate(self._input):
|
||||
if i:
|
||||
result_string += ","
|
||||
result_string += pnt.str()
|
||||
result_string += str(pnt)
|
||||
result_string += "]\n"
|
||||
result_string += " Nearest Neighbors: "
|
||||
result_string += linesegment.LineSegment(self._result["points"][0], \
|
||||
self._result["points"][1]).str()
|
||||
result_string += str(linesegment.LineSegment(self._result["points"][0], \
|
||||
self._result["points"][1]))
|
||||
result_string += "\n"
|
||||
result_string += " Distance: " + str(self._result["distance"]) + "\n"
|
||||
result_string += " Number of steps:\n"
|
||||
|
||||
Reference in New Issue
Block a user