Draws a triangle and rotate it. Also calculates min, max and centre
vertices.