Need Desperate Help With A Math Problem!
StormLiong
Join Date: 2002-12-27 Member: 11569Members

<div class="IPBDescription">its for a programming problem of mine...</div> My math has gone really rusty. Anyways, there is this programming problem that Im currently working on, I know exactly how to go about it that will definitely work, only thing Ive forgetten and cant find the maths principle of it.
Basically if I was to put my problem in a math question:
If your center was A(30, 30), how do u know the coordinate of a point thts 10 units from A, and at an angle of 45 centering at A. (The angle has GOT to be used)
I hope someone can help. Thanks alot. (uh ignore the diagram, didnt turn out teh way i wanted it to be)
Basically if I was to put my problem in a math question:
If your center was A(30, 30), how do u know the coordinate of a point thts 10 units from A, and at an angle of 45 centering at A. (The angle has GOT to be used)
I hope someone can help. Thanks alot. (uh ignore the diagram, didnt turn out teh way i wanted it to be)
Comments
Should be all the help you need. If that doesn't ring any bells, look it up in google.
I'm not doing the question for you though, but it's pretty simple.
A^2 + B^2 = 10^2
A^2 + A^2 = 10^2
You now only have 1 unknown, so you can work it out
Sine= Opposite/Hypotenuse
or
Cosine= Adjacent/Hypotenuse
Just rearrange them to what you need.
Sin 45 degrees
and
Cos 45 degrees
Then you just add to the A coordinates to get the x and y from B.
PS: I hope the graph will stay the same.
EDIT: It didn't, have to attach.
Mental Note: dun ever throw away my maths notes again ;p
Not to be offensive, but have you tried your textbook. People often overlook it, but technically you should be able to learn the course from that book.
<b>S</b>ine of the angle = <b>O</b>pposite side over the <b>H</b>ypotenuse.
<b>C</b>osine of the angle = <b>A</b>djacent side over the <b>H</b>ypotenuse.
<b>T</b>angent of the angle = <b>O</b>pposite side over the <b>A</b>djacent side.
It's not Pythagoras, but it <i>is</i> trigonometry. By the way, the hypotenuse is the long side, the adjacent side is the one other than the hypotenuse that makes up your angle and the opposite side is the side opposite your angle (duh).