>>772
おお!ありがとう。
一次関数とまた違うのか。

‡α≠90°and α≠270°and β≠90°and β≠270°のとき
Py - Ay = tanα(Px - Ax) and Py - By = tanβ(Px - Bx)
これをPxについて解いて ←←←←←←←←←←←←←←←←←←←← ここを詳しくたのむorz
Px = (tanβBx - tanαAx + Ay - By)/(tanβ - tanα)