HTML and CSS Reference
In-Depth Information
1
+60
degrees
1.73
2
Figure 3-11. Looking at the opposite angle
The sine of that angle is its opposite leg over the hypotenuse, or 1.73/2 (0.865), and the cosine is the
adjacent over the hypotenuse, 1/2, or 0.5. So, basically, the cosine of one angle is the same as the sine of
the other angle, and the sine of one is the cosine of the other. This might not be useful in your code, but
it's important to note that these are just relationships and ratios, and everything is connected.
Tangent
Another major trigonometry function is tangent , used in JavaScript with Math.tan(angle) . This is the
relationship of the opposite leg to the adjacent leg, as shown in Figure 3-12.
Figure 3-12. The tangent of an angle is the opposite leg/adjacent leg.
 
Search WWH ::




Custom Search