assertVertices(hexagon, minx, miny, SIDE_LEN, HexagonOrientation.ANGLED);
}
@Test
public void getCenterFlat() throws Exception {
PolygonElement hexagon = new HexagonImpl(0.0, 0.0, SIDE_LEN, HexagonOrientation.FLAT, null);
Coordinate expected = new Coordinate(SIDE_LEN, 0.5 * Math.sqrt(3.0) * SIDE_LEN);
Coordinate result = hexagon.getCenter();
assertCoordinate(expected, result);
}