Utility method to get area of right angle triangle , given base and hypotenuse
double getArea ( double base , double hypotenuse ) { double height = sqrt ( hypotenuse * hypotenuse - base * base ) ; return 0.5 * base * height ; }