public class Geo3dRectangleShape extends Geo3dShape<GeoBBox> implements org.locationtech.spatial4j.shape.Rectangle
Geo3dShape
which represents a Rectangle
.boundingBox, center, shape, spatialcontext
Constructor and Description |
---|
Geo3dRectangleShape(GeoBBox shape,
org.locationtech.spatial4j.context.SpatialContext spatialcontext) |
Geo3dRectangleShape(GeoBBox shape,
org.locationtech.spatial4j.context.SpatialContext spatialcontext,
double minX,
double maxX,
double minY,
double maxY) |
Modifier and Type | Method and Description |
---|---|
org.locationtech.spatial4j.shape.Rectangle |
getBoundingBox() |
org.locationtech.spatial4j.shape.Shape |
getBuffered(double distance,
org.locationtech.spatial4j.context.SpatialContext spatialContext) |
org.locationtech.spatial4j.shape.Point |
getCenter() |
boolean |
getCrossesDateLine() |
double |
getHeight() |
double |
getMaxX() |
double |
getMaxY() |
double |
getMinX() |
double |
getMinY() |
double |
getWidth() |
org.locationtech.spatial4j.shape.SpatialRelation |
relateXRange(double minX,
double maxX) |
org.locationtech.spatial4j.shape.SpatialRelation |
relateYRange(double minY,
double maxY) |
void |
reset(double minX,
double maxX,
double minY,
double maxY) |
equals, getArea, getContext, hasArea, hashCode, isEmpty, relate, toString
public Geo3dRectangleShape(GeoBBox shape, org.locationtech.spatial4j.context.SpatialContext spatialcontext, double minX, double maxX, double minY, double maxY)
public Geo3dRectangleShape(GeoBBox shape, org.locationtech.spatial4j.context.SpatialContext spatialcontext)
public org.locationtech.spatial4j.shape.Point getCenter()
getCenter
in interface org.locationtech.spatial4j.shape.Shape
getCenter
in class Geo3dShape<GeoBBox>
public void reset(double minX, double maxX, double minY, double maxY)
reset
in interface org.locationtech.spatial4j.shape.Rectangle
public org.locationtech.spatial4j.shape.Rectangle getBoundingBox()
getBoundingBox
in interface org.locationtech.spatial4j.shape.Shape
getBoundingBox
in class Geo3dShape<GeoBBox>
public double getWidth()
getWidth
in interface org.locationtech.spatial4j.shape.Rectangle
public double getHeight()
getHeight
in interface org.locationtech.spatial4j.shape.Rectangle
public double getMinX()
getMinX
in interface org.locationtech.spatial4j.shape.Rectangle
public double getMinY()
getMinY
in interface org.locationtech.spatial4j.shape.Rectangle
public double getMaxX()
getMaxX
in interface org.locationtech.spatial4j.shape.Rectangle
public double getMaxY()
getMaxY
in interface org.locationtech.spatial4j.shape.Rectangle
public boolean getCrossesDateLine()
getCrossesDateLine
in interface org.locationtech.spatial4j.shape.Rectangle
public org.locationtech.spatial4j.shape.SpatialRelation relateYRange(double minY, double maxY)
relateYRange
in interface org.locationtech.spatial4j.shape.Rectangle
public org.locationtech.spatial4j.shape.SpatialRelation relateXRange(double minX, double maxX)
relateXRange
in interface org.locationtech.spatial4j.shape.Rectangle
public org.locationtech.spatial4j.shape.Shape getBuffered(double distance, org.locationtech.spatial4j.context.SpatialContext spatialContext)
getBuffered
in interface org.locationtech.spatial4j.shape.Shape
getBuffered
in class Geo3dShape<GeoBBox>
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.