calcRhombusWidth static method

double calcRhombusWidth(
  1. double shapeHeight
)

The width of the diamond is calculated and returned.

Implementation

static double calcRhombusWidth(double shapeHeight) {
  double angleTheta = _getAngleTheta();

  // Return the width of the diamond.
  return 2.0 * ((shapeHeight / 2.0) * tan(angleTheta));
}