In a right triangle Cos and Sin of one of the angles give you the ratio of one of the legs over the hypotenuse, tangent and cotangent of the angle give you the ratio of the two legs over each other. (which is equal to the ratio between cos and sin, since the hypotenuse is the same in those and cancels out).
If you plot a point in the unit circle at the given angle and then draw a line tangent to the unit circle through that point the tan of the angle is the length of the segment from the point to where the line intersects the x axis and the cotan is the length from the point to the intersection of the y axis.
If you remember slope intercept form from algebra (y=mx+b) m is the slope of a line calculated as rise/run or (y[1]-y[2])/(x[1]-x[2]). Tangent is the slope of a radius extending from the origin. That radius is the hypotenuse of a right triangle with height sine(theta) and base cosine(theta). Tan is then sin/cos. Cotan is just cos/sin or 1/Tan. Both are useful for working out how lines are oriented relative to a coordinate grid
So people tell me that I need to learn algebra to become a programmer, just to clarify, I have been a programmer for 2 years now and 1 year in game development. Just so you know I am a programmer.
Maybe I suck at algebra and probably ok at trigonometry but it a bit annoys me that people look at me like a complete beginner. Not a problem though
Latest Answers