use quick_point_from_proportion for graph points

This commit is contained in:
Grant Sanderson
2021-11-16 17:37:27 -08:00
parent fbbea47d11
commit e764da3c3a

View File

@ -151,14 +151,14 @@ class CoordinateSystem():
else:
alpha = binary_search(
function=lambda a: self.point_to_coords(
graph.point_from_proportion(a)
graph.quick_point_from_proportion(a)
)[0],
target=x,
lower_bound=self.x_range[0],
upper_bound=self.x_range[1],
)
if alpha is not None:
return graph.point_from_proportion(alpha)
return graph.quick_point_from_proportion(alpha)
else:
return None