public class ConvertTool
extends java.lang.Object
构造器和说明 |
---|
ConvertTool() |
限定符和类型 | 方法和说明 |
---|---|
static Location |
calculateDeviceLocation(Location targetLocation,
Point3D targetPosition,
float startAzimuth)
计算设备的地理位置
|
static Point3D |
convertToArPosition(EffectBaseView arEffectBaseView,
Location position)
根据经纬度计算AR场景坐标
|
static Point3D |
convertToArPosition(Location startLocation,
Location targetLocation,
float startAzimuth)
根据经纬度计算AR场景坐标
|
static Location |
convertToLocation(EffectBaseView arEffectBaseView,
Point3D position)
根据AR场景中的绝对位置获取地理位置
|
static Location |
convertToLocation(Point3D position,
Location startLocation,
float startAzimuth)
根据AR场景中的绝对位置获取地理位置
|
static float |
getArea(java.util.List<Vector3> pointList)
获取面积
|
static float |
getAreaByPoint3D(java.util.List<Point3D> pointList)
获取面积
|
static float |
getAreaByVector3(java.util.List<Vector3> pointList)
获取面积
|
static float |
getDistance(double lon1,
double lat1,
double lon2,
double lat2)
获取距离
|
static float |
getDistance(Point3D a,
Point3D b)
获取距离
|
static float |
getDistance(Point a,
Point b)
获取距离
|
static float |
getDistance(Vector3 a,
Vector3 b)
获取距离
|
static Point3D |
getPointAfterRotation(Point3D a,
Point3D b,
float rotationAngle)
获取在XOY平面,B点绕A点旋转后的点坐标
|
static float[] |
getTranslation(Location locationA,
Location locationB)
获取WGS84坐标系下B点相对A点的偏移量
|
static Location |
toWGSCoordinatesFromGCJ(Location location)
GCJ坐标转WGS坐标
|
public static Point3D convertToArPosition(EffectBaseView arEffectBaseView, Location position)
arEffectBaseView
- position
- public static Point3D convertToArPosition(Location startLocation, Location targetLocation, float startAzimuth)
startLocation
- targetLocation
- startAzimuth
- public static Location convertToLocation(EffectBaseView arEffectBaseView, Point3D position)
arEffectBaseView
- position
- public static Location convertToLocation(Point3D position, Location startLocation, float startAzimuth)
position
- startLocation
- startAzimuth
- public static Location calculateDeviceLocation(Location targetLocation, Point3D targetPosition, float startAzimuth)
targetLocation
- targetPosition
- startAzimuth
- public static float getDistance(double lon1, double lat1, double lon2, double lat2)
lon1
- lat1
- lon2
- lat2
- public static float getDistance(Vector3 a, Vector3 b)
a
- b
- public static float getAreaByVector3(java.util.List<Vector3> pointList)
pointList
- public static float getAreaByPoint3D(java.util.List<Point3D> pointList)
pointList
- public static Location toWGSCoordinatesFromGCJ(Location location)
location
- public static Point3D getPointAfterRotation(Point3D a, Point3D b, float rotationAngle)
a
- b
- rotationAngle
- public static float getArea(java.util.List<Vector3> pointList)
pointList
- public static float[] getTranslation(Location locationA, Location locationB)
locationA
- locationB
- public static float getDistance(Point a, Point b)
a
- b
-