I tried multiple implementation as you can see in the commented code.
The problem is pretty straight forward regarding the idea but somehow I’m failing at implementing it.
I’m always failing the test 27/80.
If anyone is willing to share some tests or maybe to give a hand in finding my bug I will be really grateful.
the test case and the result seems ok.
you cannot throw a rock from the center of that building (1,0) to (0,0) because the angle needed is either negative (through the building either it will hit the margin of the building (1,0) while going down to the center of building (0,0)
I will also investigate the rest of the connections.