Update algorithm.py

Methods str of point and linesegment are now operators
This commit is contained in:
2020-03-10 08:38:33 +01:00
parent 6bf4368c60
commit b0d83a9116

View File

@@ -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"