Jump to content
  • Advertisement
Sign in to follow this  
Fl4sh

How do you visualize the relationships between sin,cos,tan

This topic is 2842 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I understand the basics and I understand that they are just functions that take an angle and return a ratio of the two sides of a right triangle.

My question is how do I visualize this stuff?

And also, how come you can multiply a distance by what one of the functions return and have it give a side? ;o

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by Fl4sh
I understand the basics and I understand that they are just functions that take an angle and return a ratio of the two sides of a right triangle.

My question is how do I visualize this stuff?

And also, how come you can multiply a distance by what one of the functions return and have it give a side? ;o


Ugly ascii art time:



/
1 / |
/ | sin(v)
/ |
/ ) v |
--------------
cos(v)

Look at the unit circle


1) sin(v) and cos(v) can be defined defined as the sides of the triangle you get by drawing a v angle line from origin inside a 1 radius circle

2) increasing the radius of the circle increases the length of the sides of the triangle by the same factor.

Share this post


Link to post
Share on other sites
My visualizations:

cos is the X coordinate as you rotate around a circle. Changes slowest toward the left and right (0 and 180 degrees), fastest at the top and bottom (90 and 270 degrees).

sin is the Y coordinate. Changes fastest at top and bottom, slowest at left and right.

tan is the slope of the line. 0 at left and right, ramps faster and faster to infinity at the top and bottom.

Share this post


Link to post
Share on other sites
Quote:
Original post by CDProp
The internal angles of all triangles add up to 180.

Not on the surface of a sphere :)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!