Package | Description |
---|---|
net.ymate.platform.commons.util |
Modifier and Type | Method and Description |
---|---|
GeoPoint |
GeoCircle.getCenter() |
GeoPoint |
GeoBound.getCenter() |
GeoPoint |
GeoBound.getNorthEast() |
GeoPoint |
GeoBound.getSouthWest() |
GeoPoint |
GeoPoint.retain6() |
GeoPoint |
GeoPoint.toBd09() |
GeoPoint |
GeoPoint.toGcj02() |
GeoPoint |
GeoPoint.toWgs84() |
Modifier and Type | Method and Description |
---|---|
List<GeoPoint> |
GeoPolygon.getPoints() |
Modifier and Type | Method and Description |
---|---|
GeoPolygon |
GeoPolygon.add(GeoPoint point) |
static int |
GeoUtils.contains(GeoCircle circle,
GeoPoint point)
判断点是否在圆形范围内
|
int |
GeoCircle.contains(GeoPoint point)
判断点是否在圆形范围内
|
boolean |
GeoBound.contains(GeoPoint point) |
static boolean |
GeoUtils.contains(GeoPolygon polygon,
GeoPoint point)
判断点是否在多边形区域内
|
static boolean |
GeoUtils.contains(GeoPolygon polygon,
GeoPoint point,
boolean on) |
double |
GeoPoint.distance(GeoPoint point)
算法代码参考自:https://blog.csdn.net/xiejm2333/article/details/73297004
|
static double |
GeoUtils.distance(GeoPoint p1,
GeoPoint p2) |
boolean |
GeoPolygon.in(GeoPoint point) |
boolean |
GeoPolygon.on(GeoPoint point) |
static GeoBound |
GeoUtils.rectangle(GeoPoint point,
long distance) |
void |
GeoCircle.setCenter(GeoPoint center) |
void |
GeoBound.setNorthEast(GeoPoint northEast) |
void |
GeoBound.setSouthWest(GeoPoint southWest) |
Constructor and Description |
---|
GeoBound(GeoPoint southWest,
GeoPoint northEast) |
GeoCircle(GeoPoint center,
double r)
构造器
|
GeoPolygon(GeoPoint[] points) |
Constructor and Description |
---|
GeoPolygon(Collection<GeoPoint> points) |
Copyright © 2022. All rights reserved.