To calc triangle angle and show triangle type