19 |
public double longitudeMax; |
public double longitudeMax; |
20 |
public double longitudeMin = Double.MAX_VALUE; |
public double longitudeMin = Double.MAX_VALUE; |
21 |
|
|
22 |
|
public BoundingBox() { |
23 |
|
} |
24 |
|
|
25 |
|
|
26 |
|
public BoundingBox(BoundingBox other) { //Copy constructor |
27 |
|
this.latitudeMax = other.latitudeMax; |
28 |
|
this.longitudeMax = other.longitudeMax; |
29 |
|
|
30 |
|
this.latitudeMin = other.latitudeMin; |
31 |
|
this.longitudeMin = other.longitudeMin; |
32 |
|
} |
33 |
|
|
34 |
|
|
35 |
@Override |
@Override |
36 |
public String toString() { |
public String toString() { |
58 |
} |
} |
59 |
} |
} |
60 |
|
|
61 |
|
|
|
@Override |
|
|
public BoundingBox clone() { |
|
|
BoundingBox bb = new BoundingBox(); |
|
|
bb.latitudeMax = this.latitudeMax; |
|
|
bb.longitudeMax = this.longitudeMax; |
|
|
|
|
|
bb.latitudeMin = this.latitudeMin; |
|
|
bb.longitudeMin = this.longitudeMin; |
|
|
|
|
|
return bb; |
|
|
} |
|
62 |
|
|
63 |
|
|
64 |
} |
} |