I'm trying to solve this problem:
On a regular x/y grid, I have a point A located at position 2,7 (X,Y).
I have to place a second point (B) on the grid (somewhere to the right of point A), but I only know the X coordinate of this point B, as well as the angle the eventual imaginary corner will make at point A.... Making sense? I must use the angle in the formula I'm seeking..
So here's the data I have:
Point A -> X=2, Y=7
Angle = 45
Point B -> X=20, Y=?
The values are just examples.. I'm looking for the Y value of Point B in any case..
I hope someone can help me figure this out.. I'm trying to implement this into PHP but I can't find the correct math formula...