def tol
import bend-visgraph@2.0.0.0/visgraph.bend as Visgraphimport Base
189# ts2vg's tolerance for the points a and b.
190# F32.max only picks one of its words, so grouping the four maxima this way
191# gives ts2vg's word.
192def tol(+scale_a: F32, +xb: F32, +yb: F32) -> F32:
193 F32.max(abs_tol(), F32.mul(rel_tol(), F32.max(scale_a, F32.max(F32.abs(xb), F32.abs(yb)))))