1
$\begingroup$

diagram

How do I find the coordinates ?/? (green star) given n, A (angle) and x'/y' (red circle)? NOTE: The n on the left side is vertical, while the n on the right side is at A angle from this vertical line.

I'm sure if I knew the correct term to ask for I'd be able to locate the answer within the site, but alas, I was stretching to use the term "isosceles triangle" correctly =) Many thanks for any help you can provide!

  • 0
    So, you have a point at distance $n$ from a known point, and you want to work out where that unknown point is. Think about it a minute and you'll see that's impossible. But, wait - what's the other side of the angle? Is that other line of length $n$ supposed to be vertical? That would do the trick, give you enough information to answer the question.2012-05-10
  • 0
    This looks to be a potential solution, but it looks like it solves for the other end of the line. With this problem, it will always be the "start-point" to solve for. See: http://forums.codeguru.com/showthread.php?t=472141 `sin(theta) = (y2 - y1) / L` so: `y2 = [L * sin(theta)] + y1` and `cos(theta) = (x2 - x1) / L` so: `x2 = [L * cos(theta)] + x1` (`L` = Length of line, `(x1, y1)` = start point, `(x2, y2)` = end point & `theta` = angle).2012-05-10
  • 0
    @Gerry Myerson: Yes, the "left" `n` is indeed vertical! I'm trying to solve this problem: http://stackoverflow.com/questions/10508022/points-on-a-unrotated-rectangle in order to solve this problem: http://stackoverflow.com/questions/10392658/calculate-the-bounding-boxs-x-y-height-and-width-of-a-rotated-element-via-jav2012-05-10

1 Answers 1