public class SpatialRelationUtil
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static int |
A_CIRCLE_DEGREE |
static int |
A_HALF_CIRCLE_DEGREE |
static int |
MIN_OFFSET_DEGREE |
static int |
MIN_POLYLINE_POINT_SIZE |
限定符和类型 | 方法和说明 |
---|---|
static android.util.Pair<java.lang.Integer,DPoint> |
calShortestDistancePoint(java.util.List<DPoint> points,
DPoint point)
计算一个点在线上的垂足,如果垂足在线上的某一顶点,则直接返回顶点的下标
|
static android.util.Pair<java.lang.Integer,DPoint> |
calShortestDistancePoint(java.util.List<DPoint> points,
DPoint point,
float bearing) |
static android.util.Pair<java.lang.Integer,LatLng> |
calShortestDistancePoint(java.util.List<LatLng> points,
LatLng point)
计算一个点在线上的垂足,如果垂足在线上的某一顶点,则直接返回顶点的下标
|
static android.util.Pair<java.lang.Integer,LatLng> |
calShortestDistancePoint(java.util.List<LatLng> points,
LatLng point,
float bearing,
double distance) |
public static final int MIN_POLYLINE_POINT_SIZE
public static final int A_HALF_CIRCLE_DEGREE
public static final int A_CIRCLE_DEGREE
public static final int MIN_OFFSET_DEGREE
public static android.util.Pair<java.lang.Integer,LatLng> calShortestDistancePoint(java.util.List<LatLng> points, LatLng point, float bearing, double distance)
public static android.util.Pair<java.lang.Integer,LatLng> calShortestDistancePoint(java.util.List<LatLng> points, LatLng point)
points
- 坐标数组point
- 坐标点public static android.util.Pair<java.lang.Integer,DPoint> calShortestDistancePoint(java.util.List<DPoint> points, DPoint point)
points
- DPoint 数组point
- public static android.util.Pair<java.lang.Integer,DPoint> calShortestDistancePoint(java.util.List<DPoint> points, DPoint point, float bearing)