Home | Gaming | Programming | Play Online | Contact | Keyword Query
Games++ Games & Game Programming

Physics For<br>Game Developers

Physics For
Game Developers

Mathematics for<br>3D Game Programming<br>& Computer Graphics

Mathematics for
3D Game Programming
& Computer Graphics

Lionel's Trigonometry Tutorial for Programmers

Part 1: Introduction to Trigonometry

INTRODUCTION

This is a series of tutorial for programmers who do not have previous experience in trigonometry.

WHAT IS TRIGONOMETRY?

Trigonometry is the study of the ratios of the lengths of the sides of different triangles. In this tutorial I assume that you already know what a triangle is.

THE HYPOTENUSE

The hypotenuse is the side of the triangle opposite the right angle.

              /|
            /  |        A is the hypotenuse
       A  /    |        BC is a right angle
        /      | B
      /        |
    /          |
   ------------|
         C

PYTHAGORAS' THEORY

In a right angled triangle, the size of the square of the hypotenuse is equal to the square of the sum of the other two sides.

     |\
     |  \               B is the hypotenuse
     |    \   B         AC is a right angle
   A |      \
     |        \
     |          \
     |------------
           C

OTHER SIDES OF THE TRIANGLE

Besides the hypotenuse, there are also two other sides to any triangle, the opposite and the adjacent. The opposite is opposite of the side opposite of the angle being measured, and the adjacent is the side adjacent the angle being measured. Now how hard can that be? : -)

               /|
             /  |       A is the hypotenuse
           /    |       BC is a right angle
      A  /      |       B/C is the opposite/adjacent
       /        | B         if the angle is AB,
     /          |               B is the adjacent & C is the opposite
   /            |           if the angle is AC,
  --------------|               C is the adjacent & B is the opposite
          C

-----------------------------------------------------------------------------
 Copyright (C) 2000 Lionel Pinkhard. All Rights Reserved.
-----------------------------------------------------------------------------