Triangle height and Pythagorean theorem