public class Rectangle2D extends Object
Modifier and Type | Field and Description |
---|---|
protected byte[] |
bbox |
protected int |
maxX |
protected int |
maxY |
protected int |
minX |
protected int |
minY |
Modifier | Constructor and Description |
---|---|
protected |
Rectangle2D(double minLat,
double maxLat,
double minLon,
double maxLon) |
protected |
Rectangle2D(int minX,
int maxX,
int minY,
int maxY) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsTriangle(int ax,
int ay,
int bx,
int by,
int cx,
int cy)
Checks if the rectangle contains the provided triangle
|
static Rectangle2D |
create(Rectangle rectangle)
Builds a Rectangle2D from rectangle
|
boolean |
crossesDateline() |
boolean |
equals(Object o) |
int |
hashCode() |
PointValues.Relation |
intersectRangeBBox(int minXOffset,
int minYOffset,
byte[] minTriangle,
int maxXOffset,
int maxYOffset,
byte[] maxTriangle)
intersects this to a provided range bounding box
|
boolean |
intersectsTriangle(int aX,
int aY,
int bX,
int bY,
int cX,
int cY)
Checks if the rectangle intersects the provided triangle
|
boolean |
queryContainsPoint(int x,
int y)
Checks if the rectangle contains the provided point
|
PointValues.Relation |
relateRangeBBox(int minXOffset,
int minYOffset,
byte[] minTriangle,
int maxXOffset,
int maxYOffset,
byte[] maxTriangle)
compare this to a provided range bounding box
|
Component2D.WithinRelation |
withinTriangle(int ax,
int ay,
boolean ab,
int bx,
int by,
boolean bc,
int cx,
int cy,
boolean ca)
Returns the Within relation to the provided triangle
|
protected final byte[] bbox
protected final int minX
protected final int maxX
protected final int minY
protected final int maxY
protected Rectangle2D(double minLat, double maxLat, double minLon, double maxLon)
protected Rectangle2D(int minX, int maxX, int minY, int maxY)
public static Rectangle2D create(Rectangle rectangle)
public boolean crossesDateline()
public boolean queryContainsPoint(int x, int y)
public PointValues.Relation relateRangeBBox(int minXOffset, int minYOffset, byte[] minTriangle, int maxXOffset, int maxYOffset, byte[] maxTriangle)
public PointValues.Relation intersectRangeBBox(int minXOffset, int minYOffset, byte[] minTriangle, int maxXOffset, int maxYOffset, byte[] maxTriangle)
public boolean intersectsTriangle(int aX, int aY, int bX, int bY, int cX, int cY)
public Component2D.WithinRelation withinTriangle(int ax, int ay, boolean ab, int bx, int by, boolean bc, int cx, int cy, boolean ca)
public boolean containsTriangle(int ax, int ay, int bx, int by, int cx, int cy)
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.