Game Development Reference
In-Depth Information
The right triangle has three sides, the longest of which is the hypotenuse, the side next to
the angle Ɵ is the adjacent side and the opposing side is known as the opposite Ɵ.
Figure 13- Trigonometric relationships of a right triangle.
With these relationships established, we can see that for our point
p'
.
Thisisthebasiccaseinwhich
x = h
,nowthatwehaveestablishedhowtocalculatetheco-
ordinates for our rotated point p' we need to consider how to do it given an arbitrary point
p
.