hexHeight property

double get hexHeight

获取六边形的高度

Implementation

double get hexHeight {
  if (orientation == HexOrientationMatrix.pointy) {
    return size * 2;
  } else {
    return size * math.sqrt(3);
  }
}