0
$\begingroup$

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...

Thanks!!!!

  • 1
    Two points don't form a corner, not even an eventual imaginary one. If you really mean a corner, you'll need another point. But I have a feeling you might actually mean the angle that the line through $A$ and $B$ forms with the $x$ direction?2011-04-11

3 Answers 3