def clears
import bend-visgraph@2.0.0.0/visgraph.bend as Visgraphimport Base
198# greater(s, best, tol(scale_a, xb, yb)), with the tolerance computed only
199# when s is above best: the tolerance is positive, so otherwise it fails
200# anyway.
201def clears(up: Bool, +s: F32, +best: F32, +scale_a: F32, +xb: F32, +yb: F32) -> Bool:
202 match up:
203 case True{}:
204 greater(s, best, tol(scale_a, xb, yb))
205 case False{}:
206 False{}