getTriangularHeight2 static method
传入直角三角形斜边和其中一个夹角,然后计算斜边为底的高度h
Implementation
static double getTriangularHeight2(double hypotenuse, double angle) {
//另外两条边
final section = angle2SinSlope(angle) * hypotenuse;
final section2 = angle2CosSlope(angle) * hypotenuse;
final h = section * section2 / hypotenuse;
return h;
}