c# - How to calculate the point(x2,y2) with the point (x1,y1) and the angle -
Then I came back with a question.
1. I have a drawing from the point (X2, y2) for which I do not have the end point (the digit is unknown as figs), but I want the length of the line from the vector (x2, y2) and The angle was known. Can anyone help me calculate unknown digits?
Thank you, Lokesh.
This is the original consideration of the following picture.
/ | / B / | / | / | C / | One / | / | / _ | / A | | * ---------- + b
Do you know the angle a and b (a 45 o < / Sup>, such other because the angle inside the triangle is connected to 180 o and it is a right angle (90 o ) triangle).
A = C sin ABC = C Cos B.
Then just add your starting points (make sure you get the correct sign) and you have the end point. For example, suppose that your imaginary usage was 1.414213562 , a number I randomly selected from above my head.
The length is a c sin A or 1.414213562 * sin 45 or 1.414213562 * 0.707106781 Or 1 . Wow
Wow, what was the likelihood of that? : -)
Comments
Post a Comment