public class XYRectangle2D extends Object implements Component2D
Component2D.WithinRelation
Modifier | Constructor and Description |
---|---|
protected |
XYRectangle2D(double minX,
double maxX,
double minY,
double maxY) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(double x,
double y)
relates this component2D with a point
|
static Component2D |
create(XYRectangle... rectangles)
create a component2D from provided array of rectangles
|
boolean |
equals(Object o) |
double |
getMaxX()
max X value for the component
|
double |
getMaxY()
max Y value for the component
|
double |
getMinX()
min X value for the component
|
double |
getMinY()
min Y value for the component
|
int |
hashCode() |
PointValues.Relation |
relate(double minX,
double maxX,
double minY,
double maxY)
relates this component2D with a bounding box
|
PointValues.Relation |
relateTriangle(double minX,
double maxX,
double minY,
double maxY,
double ax,
double ay,
double bx,
double by,
double cx,
double cy)
relates this component2D with a triangle
|
String |
toString() |
Component2D.WithinRelation |
withinTriangle(double minX,
double maxX,
double minY,
double maxY,
double ax,
double ay,
boolean ab,
double bx,
double by,
boolean bc,
double cx,
double cy,
boolean ca)
Compute the within relation of this component2D with a triangle
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
containsPoint, disjoint, pointInTriangle, relateTriangle, within, withinTriangle
protected XYRectangle2D(double minX, double maxX, double minY, double maxY)
public double getMinX()
Component2D
getMinX
in interface Component2D
public double getMaxX()
Component2D
getMaxX
in interface Component2D
public double getMinY()
Component2D
getMinY
in interface Component2D
public double getMaxY()
Component2D
getMaxY
in interface Component2D
public boolean contains(double x, double y)
Component2D
contains
in interface Component2D
public PointValues.Relation relate(double minX, double maxX, double minY, double maxY)
Component2D
relate
in interface Component2D
public PointValues.Relation relateTriangle(double minX, double maxX, double minY, double maxY, double ax, double ay, double bx, double by, double cx, double cy)
Component2D
relateTriangle
in interface Component2D
public Component2D.WithinRelation withinTriangle(double minX, double maxX, double minY, double maxY, double ax, double ay, boolean ab, double bx, double by, boolean bc, double cx, double cy, boolean ca)
Component2D
withinTriangle
in interface Component2D
public static Component2D create(XYRectangle... rectangles)
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.