TPiddy said:
Ok, so how would I calculate BD and CD?
Would this work if the angle is less than 90? what about 90 dead on?
TP, if you can't "see" that if 90 dead on, then coordinates are (45,0),
then I wonder why you're tackling this.
Anyhoo, now that I got suckered into this:
to start, there is no need to calculate b (or AC);
simply create right triangle BCD (right angle at D of course);
angle CBD becomes 40 degrees (twice 20 degrees); so angle BCD = 50 degrees.
So you have a right triangle with hypotenuse = 45;
so CD = 45 * SIN(40) = ~28.93
and BD=45 * COS(40) = ~34.47
So C's coordinates = (28.93, 34.47)
For general case, let r = radius and u = given angle (140 in your example);
then the coordinates (x,y) are:
x = r * SIN(180-u)
y = r * COS(180-u)
And YES, it will work is u is less than 90;
the y coordinate will be negative, of course.
If you want to really SEE it work, get some graph paper and draw to scale
your r=45 and u=140 example, including right triangle BDC:
then rotate sheet a half turn: you'll see why the coordinates are both positive.
For u < 90 example, try u=70:
you'll get x = ~42.29 and y = ~-15.39;
again, include right triangle BDC (BD will be along x-axis);
rotate half turn and you'll SEE why y is negative.
That's it; I suggest you get familiar with Law of Sines and Cosines.