@Test public void calculateArea() { assertEquals(AREA, Hexagons.sideLengthToArea(SIDE_LEN), TOL); }
public static double sideLengthToArea(double sideLen) { if (sideLen <= 0.0) { throw new IllegalArgumentException("side length must be > 0"); } return sideLen * sideLen * 1.5 * ROOT3; }
Hexagons { public static double sideLengthToArea(double sideLen) { if (sideLen <= 0.0) { throw new IllegalArgumentException("side length must be > 0"); } return sideLen * sideLen * 1.5 * ROOT3; } }
Hexagons { public static double sideLengthToArea(double sideLen) { if (sideLen <= 0.0) { throw new IllegalArgumentException("side length must be > 0"); } return sideLen * sideLen * 1.5 * ROOT3; }  }
Hexagons { public static double sideLengthToArea(double sideLen) { if (sideLen <= 0.0) { throw new IllegalArgumentException("side length must be > 0"); } return sideLen * sideLen * 1.5 * ROOT3; }  static double sideLengthToArea(double sideLen); static double areaToSideLength(double area); static Hexagon create(double minX, double minY, double sideLen,
            HexagonOrientation orientation, CoordinateReferenceSystem crs); static SimpleFeatureSource createGrid(
            ReferencedEnvelope bounds,
            double sideLen,
            HexagonOrientation orientation,
            GridFeatureBuilder gridBuilder); static SimpleFeatureSource createGrid(
            ReferencedEnvelope bounds,
            double sideLen,
            double vertexSpacing,
            HexagonOrientation orientation,
            GridFeatureBuilder gridFeatureBuilder); }
Hexagons { public static double sideLengthToArea(double sideLen) { if (sideLen <= 0.0) { throw new IllegalArgumentException("side length must be > 0"); } return sideLen * sideLen * 1.5 * ROOT3; }  static double sideLengthToArea(double sideLen); static double areaToSideLength(double area); static Hexagon create(double minX, double minY, double sideLen,
            HexagonOrientation orientation, CoordinateReferenceSystem crs); static SimpleFeatureSource createGrid(
            ReferencedEnvelope bounds,
            double sideLen,
            HexagonOrientation orientation,
            GridFeatureBuilder gridBuilder); static SimpleFeatureSource createGrid(
            ReferencedEnvelope bounds,
            double sideLen,
            double vertexSpacing,
            HexagonOrientation orientation,
            GridFeatureBuilder gridFeatureBuilder);  }