Again i came back with a question.
1.I have a line drawing from a point (x2,y2) for which i do no the end point(Say point unknown as in the fig),but i knew the line length and the angle from the vector (x2,y2). Can any one help me how to calculate the unknown points.

Thanks,
Lokesh.
This looks like a job for … Trigonometry-man.
Consider the following diagram:
You know the angle
B, it’s 45o. You also knowCis 90o because that’s the "right angle" bit of the right angle triangle.And, because the angles inside a triangle add up to 180o, angle
Amust also be 45o.You also know the length of the hypotenuse
c. With trigonometry(a), you can get the lengths of the other two sides with:Then simply add those to your starting point (making sure you get the signs right) and you have your ending point.
For example, let’s say your hypotenuse was
1.414213562, a number I just just picked at random off the top of my head 🙂The length
aisc sin Aor1.414213562 * sin 45, which is1.414213562 * 0.707106781or1.Wow, what were the chances of that? 🙂
(a) My children reminded me of the "soh cah toa" (pronounced so car toe ah) rule, where "opposite" and "adjacent" sides are location from the angle
X: