public class BoundingBoxUtil extends Object
| Constructor and Description |
|---|
BoundingBoxUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
covers(double minX1,
double minY1,
double maxX1,
double maxY1,
double minX2,
double minY2,
double maxX2,
double maxY2) |
static double[] |
createBounds(double... bounds) |
static double[] |
createBounds(GeometryFactory geometryFactory,
double... bounds) |
static double[] |
createBounds(GeometryFactory geometryFactory,
int axisCount,
Point point) |
static double[] |
createBounds(GeometryFactory geometryFactory,
Point point) |
static double[] |
createBounds(int axisCount) |
static double[] |
createBounds(int axisCount,
Point point) |
static double[] |
createBounds(Point point) |
static void |
expand(double[] bounds,
int axisCount,
double... coordinates) |
static void |
expand(double[] bounds,
int axisCount,
int axisIndex,
double coordinate) |
static void |
expand(double[] bounds,
int axisCount,
Point point) |
static void |
expand(GeometryFactory geometryFactory,
double[] bounds,
double... values) |
static void |
expand(GeometryFactory geometryFactory,
double[] bounds,
int axisIndex,
double coordinate) |
static void |
expand(GeometryFactory geometryFactory,
double[] bounds,
int axisCount,
int axisIndex,
double coordinate) |
static void |
expand(GeometryFactory geometryFactory,
double[] bounds,
Point point) |
static void |
expandX(double[] bounds,
int axisCount,
double value) |
static void |
expandY(double[] bounds,
int axisCount,
double value) |
static void |
expandZ(double[] bounds,
int axisCount,
double value) |
static double |
getMax(double[] bounds,
int axisIndex) |
static double |
getMin(double[] bounds,
int axisIndex) |
static boolean |
intersects(double[] bounds1,
double[] bounds2) |
static boolean |
intersects(double p1X,
double p1Y,
double p2X,
double p2Y,
double qX,
double qY)
Point intersects the bounding box of the line.
|
static boolean |
intersects(double p1X,
double p1Y,
double p2X,
double p2Y,
double q1X,
double q1Y,
double q2X,
double q2Y) |
static boolean |
intersects(Point lineStart,
Point lineEnd,
Point point)
Point intersects the bounding box of the line.
|
static boolean |
intersects(Point line1Start,
Point line1End,
Point line2Start,
Point line2End)
Tests whether the envelope defined by p1-p2
and the envelope defined by q1-q2
intersect.
|
static boolean |
isEmpty(BoundingBox boundingBox) |
public static boolean covers(double minX1,
double minY1,
double maxX1,
double maxY1,
double minX2,
double minY2,
double maxX2,
double maxY2)
public static double[] createBounds(double... bounds)
public static double[] createBounds(GeometryFactory geometryFactory, double... bounds)
public static double[] createBounds(GeometryFactory geometryFactory, int axisCount, Point point)
public static double[] createBounds(GeometryFactory geometryFactory, Point point)
public static double[] createBounds(int axisCount)
public static double[] createBounds(int axisCount,
Point point)
public static double[] createBounds(Point point)
public static void expand(double[] bounds,
int axisCount,
double... coordinates)
public static void expand(double[] bounds,
int axisCount,
int axisIndex,
double coordinate)
public static void expand(double[] bounds,
int axisCount,
Point point)
public static void expand(GeometryFactory geometryFactory, double[] bounds, double... values)
public static void expand(GeometryFactory geometryFactory, double[] bounds, int axisIndex, double coordinate)
public static void expand(GeometryFactory geometryFactory, double[] bounds, int axisCount, int axisIndex, double coordinate)
public static void expand(GeometryFactory geometryFactory, double[] bounds, Point point)
public static void expandX(double[] bounds,
int axisCount,
double value)
public static void expandY(double[] bounds,
int axisCount,
double value)
public static void expandZ(double[] bounds,
int axisCount,
double value)
public static double getMax(double[] bounds,
int axisIndex)
public static double getMin(double[] bounds,
int axisIndex)
public static boolean intersects(double p1X,
double p1Y,
double p2X,
double p2Y,
double qX,
double qY)
lineStart - lineEnd - point - public static boolean intersects(double p1X,
double p1Y,
double p2X,
double p2Y,
double q1X,
double q1Y,
double q2X,
double q2Y)
public static boolean intersects(double[] bounds1,
double[] bounds2)
public static boolean intersects(Point lineStart, Point lineEnd, Point point)
lineStart - lineEnd - point - public static boolean intersects(Point line1Start, Point line1End, Point line2Start, Point line2End)
p1 - one extremal point of the envelope Pp2 - another extremal point of the envelope Pq1 - one extremal point of the envelope Qq2 - another extremal point of the envelope Qtrue if Q intersects Ppublic static boolean isEmpty(BoundingBox boundingBox)
Copyright © 2015 Revolution Systems Inc.. All rights reserved.