public class GeometryUtil extends Object
| 构造器 | 说明 |
|---|---|
GeometryUtil() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static PolygonShape |
convexHull(Array x,
Array y) |
Computes the smallest convex
Polygon that contains all the
points |
static List<PointD> |
getEllipseCoordinates(double x0,
double y0,
double a,
double b) |
Get ellipse coordinates
|
static List<PointD> |
getEllipseCoordinates(double x0,
double y0,
double a,
double b,
double deltaAngle) |
Get ellipse coordinates
|
static PointD |
getEllipseXY(double x0,
double y0,
double a,
double b,
double angle) |
Get ellipse coordinate
|
static Array |
inPolygon(Array a,
List<Number> x,
List<Number> y,
List<Number> x_p,
List<Number> y_p) |
In polygon function
|
static Array |
inPolygon(Array a,
List<Number> x,
List<Number> y,
List<PolygonShape> polygons) |
In polygon function
|
static Array |
inPolygon(Array a,
List<Number> x,
List<Number> y,
VectorLayer layer) |
In polygon function
|
static Array |
inPolygon(Array a,
List<Number> x,
List<Number> y,
PolygonShape ps) |
In polygon function
|
static Array |
inPolygon(Array x,
Array y,
List<PolygonShape> polygons) |
In polygon function
|
static Array |
inPolygon(Array x,
Array y,
Array x_p,
Array y_p) |
In polygon function
|
static Array |
maskin(Array a,
Array m) |
Maskin function
|
static Array |
maskin(Array a,
Array x,
Array y,
List<PolygonShape> polygons) |
Maskin function
|
static Array[] |
maskin_Remove(Array a,
Array x,
Array y,
List<PolygonShape> polygons) |
Maskin function
|
static Array |
maskout(Array a,
List<Number> x,
List<Number> y,
List<PolygonShape> polygons) |
Maskout function
|
static Array |
maskout(Array a,
List<Number> x,
List<Number> y,
List<PolygonShape> polygons,
Number missingValue) |
Maskout function
|
static Array |
maskout(Array a,
List<Number> x,
List<Number> y,
VectorLayer layer,
Number missingValue) |
Maskout function
|
static Array |
maskout(Array a,
List<Number> x,
List<Number> y,
PolygonShape polygon,
Number missingValue) |
Maskout function
|
static Array |
maskout(Array a,
Array m) |
Maskout function
|
static Array |
maskout(Array a,
Array m,
Number missingValue) |
Maskout function
|
static Array |
maskout(Array a,
Array x,
Array y,
List<PolygonShape> polygons) |
Maskout function
|
static Array[] |
maskout_Remove(Array a,
Array x,
Array y,
List<PolygonShape> polygons) |
Maskout function
|
public static PointD getEllipseXY(double x0, double y0, double a, double b, double angle)
x0 - Center xy0 - Center ya - Major axisb - Minor axisangle - Anglepublic static List<PointD> getEllipseCoordinates(double x0, double y0, double a, double b, double deltaAngle)
x0 - Center xy0 - Center ya - Major axisb - Minor axisdeltaAngle - Delta anglepublic static List<PointD> getEllipseCoordinates(double x0, double y0, double a, double b)
x0 - Center xy0 - Center ya - Major axisb - Minor axispublic static PolygonShape convexHull(Array x, Array y)
Polygon that contains all the
pointsx - X arrayy - Y arraypublic static Array inPolygon(Array a, List<Number> x, List<Number> y, VectorLayer layer)
a - Array ax - X dimension valuesy - Y dimension valueslayer - Polygon vector layerpublic static Array inPolygon(Array a, List<Number> x, List<Number> y, PolygonShape ps)
a - Array ax - X dimension valuesy - Y dimension valuesps - Polygon shapepublic static Array inPolygon(Array a, List<Number> x, List<Number> y, List<PolygonShape> polygons)
a - Array ax - X dimension valuesy - Y dimension valuespolygons - PolygonShape listpublic static Array inPolygon(Array x, Array y, List<PolygonShape> polygons)
x - X coordinatesy - Y coordinatespolygons - PolygonShape listpublic static Array inPolygon(Array a, List<Number> x, List<Number> y, List<Number> x_p, List<Number> y_p)
a - Array ax - X dimension valuesy - Y dimension valuesx_p - X coordinate of the polygony_p - Y coordinate of the polygonpublic static Array inPolygon(Array x, Array y, Array x_p, Array y_p)
x - X coordinatesy - Y coordinatesx_p - X coordinate of the polygony_p - Y coordinate of the polygonpublic static Array maskout(Array a, List<Number> x, List<Number> y, VectorLayer layer, Number missingValue)
a - Array ax - X dimension valuesy - Y dimension valueslayer - VectorLayermissingValue - Missing valuepublic static Array maskout(Array a, List<Number> x, List<Number> y, PolygonShape polygon, Number missingValue)
a - Array ax - X dimension valuesy - Y dimension valuespolygon - Polygon shapemissingValue - Missing valuepublic static Array maskout(Array a, Array x, Array y, List<PolygonShape> polygons)
a - Array ax - X Arrayy - Y Arraypolygons - Polygons for maskoutpublic static Array maskin(Array a, Array x, Array y, List<PolygonShape> polygons)
a - Array ax - X Arrayy - Y Arraypolygons - Polygons for maskinpublic static Array[] maskout_Remove(Array a, Array x, Array y, List<PolygonShape> polygons)
a - Array ax - X Arrayy - Y Arraypolygons - Polygons for maskoutpublic static Array[] maskin_Remove(Array a, Array x, Array y, List<PolygonShape> polygons)
a - Array ax - X Arrayy - Y Arraypolygons - Polygons for maskinpublic static Array maskout(Array a, List<Number> x, List<Number> y, List<PolygonShape> polygons)
a - Array ax - X dimension valuesy - Y dimension valuespolygons - PolygonShape listpublic static Array maskout(Array a, List<Number> x, List<Number> y, List<PolygonShape> polygons, Number missingValue)
a - Array ax - X dimension valuesy - Y dimension valuespolygons - PolygonShape listmissingValue - Missing valuepublic static Array maskout(Array a, Array m, Number missingValue)
a - Array am - Array maskmissingValue - Missing valuepublic static Array maskout(Array a, Array m)
a - Array am - Array maskCopyright © 2019. All rights reserved.