I have 3 point A, B, C in the link. The points generate a triangle ABC.2 red lines parallel to AB and distance between them is 30. the green line passes through B and is perpendicular to AC. here is picture to describe it
How can I find the coordinate between 2 red lines and the green line
solution
Thank you @MBo, and I want to provide an easier way to understand in the last expression: I will put the ip1 coordinate as
ip1 = b.x + t * n.x, b.y + t * n.y (1)
So the distance between ip1 and b will be:
d / sine(n, BA) = sqrt ((t * n.x) ** 2 + (t * n.y) ** 2)
You can calculate t easily and after that put it in the (1) to find ip1 and ip2 as well
