The most widely used triangles are right-angled triangles. There are many interesting properties of right-angled triangles that can be used in games to make life easier. One of the famous properties is that the square of the hypotenuse of a right-angled triangle is equal to the sum of the squares of the other two sides.

The hypotenuse of a triangle is the longest side of a right-angled triangle, as shown in the following diagram:

If the hypotenuse is denoted as h, the Pythagorean theorem can be written as follows:

h^{2} = a^{2} +b^{2}

If you take the square root of both the sides, you will get the following:

h = sqrt(a^{2}+b ...

Start Free Trial

No credit card required