Another note to self.
Originally I coded my own routine for this function.
it calculates the distance between intx and a, and intx and b and if those two quantities sum up to something larger than the distance between a,b then
the point does not lie on the edge.
So now I'll use this instead:
So now I'll use this instead: