calculateFixedDistance method

int calculateFixedDistance(
  1. double width,
  2. double height,
  3. double angle
)

Calculates the fixed distance based on the rectangle and angle

Implementation

int calculateFixedDistance(double width, double height, double angle) {
  if (isFixedDistance) {
    return fixedDistance;
  } else {
    int baseSize = _selectWidthOrHeightByAngle(width, height, angle);
    return (baseSize * proportionalDistance).toInt();
  }
}