the following is within a few % of pythagoras, given lengths (x, y): if abs(x)>abs(y): 0.96*abs(x)+0.4*abs(y) else: 0.96*abs(y)+0.4*abs(x) It's also much slower in scratch, so it's completely useless here.
however.... https://turbowarp.org/754828677 (it's still slower)