class GeoLocationPointList extends AbstractGeoLocation {

	@Override
	@Pure
	public Rectangle2d toBounds2D() {
		if (this.bounds == null && this.pts != null) {
			double x1 = Double.MAX_VALUE;
			double y1 = Double.MAX_VALUE;
			double x2 = Double.MIN_VALUE;
			double y2 = Double.MIN_VALUE;
			for (int i = 0; i < this.pts.length; i += 2) {
				if (this.pts[i] < x1) {
					x1 = this.pts[i];
				}
				if (this.pts[i] > x2) {
					x2 = this.pts[i];
				}
				if (this.pts[i + 1] < y1) {
					y1 = this.pts[i + 1];
				}
				if (this.pts[i + 1] > y2) {
					y2 = this.pts[i + 1];
				}
			}
			this.bounds = new Rectangle2d();
			this.bounds.setFromCorners(x1, y1, x2, y2);
		}
		return this.bounds;
	}

	public  GeoLocationPointList(double... points);

}