There doesn’t appear to be much more to it, just a matter of making sure we are finding the right corners to use for our ramp choke.
I should ask my AI GLM boss about using cython to increase performance that function, it might be able to achieve better precision on those corners then.