Package huskymaps
Class MapServer.BoundingBox
- java.lang.Object
-
- huskymaps.MapServer.BoundingBox
-
-
Constructor Summary
Constructors Modifier Constructor Description private
BoundingBox(double ullat, double ullon, double lrlat, double lrlon)
Constructs a new bounding box from the given parameters.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private Location
center()
Returns the location representing the center of this bounding box.boolean
equals(Object o)
private static MapServer.BoundingBox
from(io.javalin.http.Context ctx)
Returns a new bounding box from the givenContext
.int
hashCode()
-
-
-
Method Detail
-
from
private static MapServer.BoundingBox from(io.javalin.http.Context ctx)
Returns a new bounding box from the givenContext
.- Parameters:
ctx
- theContext
.- Returns:
- a new bounding box with the corresponding context parameters.
-
center
private Location center()
Returns the location representing the center of this bounding box.- Returns:
- the location representing the center of this bounding box.
-
-