Originally Posted by

**AlyoshaKaz** Hi, I'm trying to understand this bit of geometry in a computer program. What it is is an equilateral triangle that's drawn from the bottom left corner. The first step in doing this is to give the position of the bottom left corner from the center of the triangle. It does it like this (-edge / 2, edge / (2 * Math.sqrt(3)). I'm sure that's quite obvious even if you don't understand java. edge if obviouslt the length of one of the 3 sides, the part before the comma is the x coordinate and after the y(which is at 0 at the top and increases as you work down the screen).

The first part is obvious -edge / 2, that's minus the edge length / 2, ok. But the next part is where I'm confused. what I need here if half of the alitude of the triangle, I know the ration is 1 , 0.5, sqrt(3) / 2, so I need a 1/4 of the sqrt of 3 but does dividing the length of the edge by 2 * the sqrt of three give the full length of the altitude, I just can't seem to understand how it works.