Here I have a 2 points. $A$ (lat,lng) and $B$ (lat,lng), this two point is hypotenuse of right triangle.
How I can get legs length if I know angle, hypotenuse and these points?
Here I have a 2 points. $A$ (lat,lng) and $B$ (lat,lng), this two point is hypotenuse of right triangle.
How I can get legs length if I know angle, hypotenuse and these points?
Copyright © 2021 JogjaFile Inc.
Make equations like:
1) $$\frac{\sin(\text{angle})}{\sin(90^{\circ}-\text{angle})} = \frac{\text{firstLeg}}{\text{secondLeg}}$$
2) $$\text{firstLeg}^2 + \text{secondLeg}^2 = \text{hypotenuse}^2$$