calcRhombusHeight static method
The height of the diamond is calculated and returned.
Implementation
static double calcRhombusHeight(double shapeWidth) {
double angleTheta = _getAngleTheta();
// Return the height of the diamond.
return 2.0 * ((shapeWidth / 2.0) / tan(angleTheta));
}