public class BoundingBox extends Object implements org.springframework.data.geo.Shape
Constructor and Description |
---|
BoundingBox(org.springframework.data.geo.Distance width,
org.springframework.data.geo.Distance height)
Creates a new
BoundingBox from the given width and height. |
BoundingBox(double width,
double height,
org.springframework.data.geo.Metric metric)
Creates a new
BoundingBox from the given width, height and Metric . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
org.springframework.data.geo.Distance |
getHeight()
Returns the height of this bounding box.
|
org.springframework.data.geo.Distance |
getWidth()
Returns the width of this bounding box.
|
int |
hashCode() |
String |
toString() |
public BoundingBox(org.springframework.data.geo.Distance width, org.springframework.data.geo.Distance height)
BoundingBox
from the given width and height. Both distances must use the same
Metric
.width
- must not be null.height
- must not be null.public BoundingBox(double width, double height, org.springframework.data.geo.Metric metric)
BoundingBox
from the given width, height and Metric
.width
- height
- metric
- must not be null.Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.