I have a small geometric problem and I am searching for a exact solution. As its a geometric problem I think its best ilustrated as a picture.
I have given A, B, C, D and P. These are on a 2D coordinate system with float accuracy. I want to find a line, that intersects both lines at the same ratio and goes through point P. ultimately I want calculate the ratio that is marked in blue in the description picture and I want to be exact. I could only find approximations so far. I starting to think, that there isnt even a exact solution to this problem...
I hope I described my problem as exact as possible and there is a math genius out there that can help me. I am just a stupid programmer ;-(
Kind regards, Dominik