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) |
static Component2D |
create(XYRectangle... rectangles)
create a component2D from provided array of rectangles
|
boolean |
equals(Object o) |
double |
getMaxX() |
double |
getMaxY() |
double |
getMinX() |
double |
getMinY() |
int |
hashCode() |
PointValues.Relation |
relate(double minX,
double maxX,
double minY,
double maxY) |
PointValues.Relation |
relateTriangle(double minX,
double maxX,
double minY,
double maxY,
double ax,
double ay,
double bx,
double by,
double cx,
double cy) |
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) |
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()
getMinX
in interface Component2D
public double getMaxX()
getMaxX
in interface Component2D
public double getMinY()
getMinY
in interface Component2D
public double getMaxY()
getMaxY
in interface Component2D
public boolean contains(double x, double y)
contains
in interface Component2D
public PointValues.Relation relate(double minX, double maxX, double minY, double maxY)
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)
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)
withinTriangle
in interface Component2D
public static Component2D create(XYRectangle... rectangles)
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.