Okay when using sine i know it sine= o/h but how does scratch detiremen what the hopatonuse is and the oppsite lenghs are or the agesent angle for the matter? Im trying to make a art project and this is how im getting: It sets its lengh of the trringle to the varible or xpos, then calculates that not the givin based off setting all sides exsept one to that lengh number. this is what i need. I need to know what angle it is using to make it work. Can you help. Give me an exsample please. http://en.wikipedia.org/wiki/File:Trigo … iangle.svg
Btw im talking about rightangle triangles. Basecly how does scratch caluclate angels using sine?
Offline
see my car for racing game project. It uses trig for scrolling. I'm looking for my formula now.
edit: I used it knowing the hypotenuse...
so:
sin(direction)*hypotenuse=leg
sin(direction)=leg/hypotenuse
sin(direction)*leg=hypotenyse
and the same for the other only with cosine...
Last edited by 16Skittles (2010-10-30 22:19:03)
Offline
16Skittles wrote:
see my car for racing game project. It uses trig for scrolling. I'm looking for my formula now.
![]()
edit: I used it knowing the hypotenuse...
so:
sin(direction)*hypotenuse=leg
sin(direction)=leg/hypotenuse
sin(direction)*leg=hypotenyse
and the same for the other only with cosine...
okay so you need varables to get the corect answer as if using a math problem on paper?
Offline
With your wikipedia picture,
sine A sine B sine C
-------- = -------- = --------
a b h
This is true for any triangle, right-angled or not.
Last edited by TheSuccessor (2010-10-31 08:07:30)
Offline
TheSuccessor wrote:
With your wikipedia picture,
sine A sine B sine C
-------- = -------- = --------
a b h
This is true for any triangle, right-angled or not.
thanks
Offline
TheSuccessor wrote:
With your wikipedia picture,
sine A sine B sine C
-------- = -------- = --------
a b h
This is true for any triangle, right-angled or not.
Yep, law of sines. You can also use the law of cosines:
a^2 = b^2 + c^2 - 2bc cos(A)
which means:
side one squared is equal to side two squared plus side three squared minus two times side two times side three times the cosine of the angle opposite side one.
Offline
nXIII wrote:
TheSuccessor wrote:
With your wikipedia picture,
sine A sine B sine C
-------- = -------- = --------
a b h
This is true for any triangle, right-angled or not.Yep, law of sines. You can also use the law of cosines:
a^2 = b^2 + c^2 - 2bc cos(A)
which means:
side one squared is equal to side two squared plus side three squared minus two times side two times side three times the cosine of the angle opposite side one.
I think the formula is easier to understand than your your explanation. I got lost.
Offline
It doesn't need to know the length of the opposite and hypotenuse. It just needs to know the angle.
Offline
ScratchReallyROCKS wrote:
It doesn't need to know the length of the opposite and hypotenuse. It just needs to know the angle.
oh so it measures the angle thanks
Offline
TheSuccessor wrote:
nXIII wrote:
TheSuccessor wrote:
With your wikipedia picture,
sine A sine B sine C
-------- = -------- = --------
a b h
This is true for any triangle, right-angled or not.Yep, law of sines. You can also use the law of cosines:
a^2 = b^2 + c^2 - 2bc cos(A)
which means:
side one squared is equal to side two squared plus side three squared minus two times side two times side three times the cosine of the angle opposite side one.I think the formula is easier to understand than your your explanation. I got lost. :P
That's probably true... let's just leave it at "a, b, and c are sides of the triangle and A is the angle opposite side a." Solve for whatever you want (for example A = asin((a^2 - b^2 - c^2)/2bc))
Last edited by nXIII (2010-10-31 11:28:38)
Offline