Thanks @DudaNogueira and @andrewisplinghoff for the code snippets! That’s really helpful.
The distance was a -1e-5, so I brushed it off as a floating point error. But it got me looking into docs.
The code snippet and the unit test puts my doubt to rest. thank you