GeoLocationArea extends AbstractGeoLocation { @Pure public float getHeight() { return this.y2 - this.y1; } GeoLocationArea(double x1, double y1, double x2, double y2);  GeoLocationArea(Shape2d<?> area); @Pure @Override GeoId toGeoId(); @Pure @Override @SuppressWarnings("checkstyle:equalshashcode") int hashCode(); @Pure float getMinX(); @Pure float getMinY(); @Pure float getX(); @Pure float getY(); @Pure float getMaxX(); @Pure float getMaxY(); @Pure float getWidth(); @Pure float getHeight(); @Pure @Override Rectangle2d toBounds2D(); @Pure @Override GeodesicPosition toGeodesicPosition();  }
@Test public void testGetHeight() { setDecimalPrecision(0); assertEpsilonEquals(GeoLocationUtil.castDistance(this.coords11x.getY()-this.coords11m.getY()), this.location11.getHeight()); assertEpsilonEquals(GeoLocationUtil.castDistance(this.coords11x.getY()-this.coords11m.getY()), this.location12.getHeight()); assertEpsilonEquals(GeoLocationUtil.castDistance(this.coords12x.getY()-this.coords12m.getY()), this.location13.getHeight()); assertEpsilonEquals(GeoLocationUtil.castDistance(this.coords21x.getY()-this.coords21m.getY()), this.location21.getHeight()); assertEpsilonEquals(GeoLocationUtil.castDistance(this.coords21x.getY()-this.coords21m.getY()), this.location22.getHeight()); setDecimalPrecision(DEFAULT_DECIMAL_COUNT); }