开发者

How to solve my simple geometric task? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

This question does not appear to be about programming within the scope defined in the help center.

Closed 9 years ago.

Improve this question

It seems I completely forgot geometry :-( It looks like a simple. I need it for my flash game.

I drawn it in Carmetal pr开发者_Go百科ogram:

How to solve my simple geometric task? [closed]

I need coordinates of C(x,y). Please help me to find a solution.


You can stick with simple trig...

How to solve my simple geometric task? [closed]

Here, the blue line length is (By - Ay). So the angle at B is acos((By - Ay) / AB). Subtracting that angle from the angle ABC, you find the angle at B in the larger triangle. Knowing the length BC and that angle, you can calculate the length of the brown line with

l1 = BC/sin(small_angle)

Similarly, the length of the blue and red lines together is

l2 = BC/cos(small_angle)

And C is (Bx + l1, By - l2).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜