Use the mouse to drag the vertices of the triangle.
Makes use of Pythagoras' theorem and Heron's formula How it works: 1. Pythagoras' theorem is used to find the distances between each of the points 2. Heron's formula is used to calculate the area of the triangle 3. The inradius of the circle is calculated by dividing the area by the semi-perimeter of the triangle 4. The positioning of the circle is then calculated, see inside for the formula (it makes use of the semi-perimeter again) :)