Discuss Scratch

iiBonnnieHasAShovel
Scratcher
40 posts

How does sin and cos (etc) work?

I know alot of outros have the sin and cos script where it points a certain direction and goes back,
here's what i'm talking about:
([cos v] of (9))
([sin v] of (9))
know what i mean?
I want to know how these work.I'm planning on making (yet another) outro.Thanks!
gdpr533f604550b2f20900645890
Scratcher
1000+ posts

How does sin and cos (etc) work?

Sine, cosine and tangent are trigonometric ratios.
               /|
/ |
Hypotenuse / | Opposite
/ |
/θ___|
Adjacent
This is a right triangle. The angle θ, or theta, can be used to determine the ratios between sides. Triangles are similar if their angle measures are the same. Because one of the angles in a right triangle is known to be 90 degrees, and the angles must add up to 180 degrees, two triangles with the same value of theta must have the same third angle, and are therefore similar.

The ratios between sides of similar triangles are the same. Therefore, one can determine them using theta.

Sin θ = Opposite / Hypotenuse
Cos θ = Adjacent / Hypotenuse
Tan θ = Opposite / Adjacent

Using trigonometry, we can do things such as rotate sprites.
iiBonnnieHasAShovel
Scratcher
40 posts

How does sin and cos (etc) work?

Chibi-Matoran wrote:

Sine, cosine and tangent are trigonometric ratios.
               /|
/ |
Hypotenuse / | Opposite
/ |
/θ___|
Adjacent
This is a right triangle. The angle θ, or theta, can be used to determine the ratios between sides. Triangles are similar if their angle measures are the same. Because one of the angles in a right triangle is known to be 90 degrees, and the angles must add up to 180 degrees, two triangles with the same value of theta must have the same third angle, and are therefore similar.

The ratios between sides of similar triangles are the same. Therefore, one can determine them using theta.

Sin θ = Opposite / Hypotenuse
Cos θ = Adjacent / Hypotenuse
Tan θ = Opposite / Adjacent

Using trigonometry, we can do things such as rotate sprites.
Could you make that easier to understand please…? :3
asivi
Scratcher
1000+ posts

How does sin and cos (etc) work?

Hi, the hipotenuse is the radius of the circle, where it is connected with the adjacent is the centre of circle, Now knowing the angle between hipotenuse and adjacent and how long is hypotenuse (radius) we can calculate the point where hypotenuse ends by calculating how long are adjacent and opposite that are corresponding to the angle value at anytime.
asivi
Scratcher
1000+ posts

How does sin and cos (etc) work?

Let me give you a link to an instructive tutorial
Angles & Trigonometry in Scratch & in Math by MainC
iiBonnnieHasAShovel
Scratcher
40 posts

How does sin and cos (etc) work?

asivi wrote:

Let me give you a link to an instructive tutorial
Angles & Trigonometry in Scratch & in Math by MainC
Sorry,but it didn't really teach me
asivi
Scratcher
1000+ posts

How does sin and cos (etc) work?

iiBonnnieHasAShovel wrote:

asivi wrote:

Let me give you a link to an instructive tutorial
Angles & Trigonometry in Scratch & in Math by MainC
Sorry,but it didn't really teach me
Don't be worried about.
If you are a kid in some years from right now, and when your maths' skills turn to a bit more advanced you will be able to understand it.
iiBonnnieHasAShovel
Scratcher
40 posts

How does sin and cos (etc) work?

asivi wrote:

iiBonnnieHasAShovel wrote:

asivi wrote:

Let me give you a link to an instructive tutorial
Angles & Trigonometry in Scratch & in Math by MainC
Sorry,but it didn't really teach me
Don't be worried about.
If you are a kid in some years from right now, and when your maths' skills turn to a bit more advanced you will be able to understand it.
Okay,thanks for the support though!
TheNerdClub2
Scratcher
16 posts

How does sin and cos (etc) work?

Sin, Cosine, and Tangent are ratios in a triangle.

Chibi-Matoran wrote:

Sin θ = Opposite / Hypotenuse
Cos θ = Adjacent / Hypotenuse
Tan θ = Opposite / Adjacent


–> Where θ theta is the angle in question.

Calculating the values of Sin, Cos, and Tan are advanced, but you can use these ratios to rotate objects. However, the use of this in outro's is a lot of time random when people enter in random things, but some people actually know what they're doing.

Last edited by TheNerdClub2 (July 10, 2016 23:49:17)

Powered by DjangoBB