|
@@ -38,6 +38,12 @@ public class MatrixUtil {
|
|
|
return newMatrix;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 获取矩阵转换参数
|
|
|
+ * @param orientation 旋转角度
|
|
|
+ * @param location gis坐标
|
|
|
+ * @return
|
|
|
+ */
|
|
|
private static double[] getTransfromMatrix(double orientation, JSONObject location) {
|
|
|
double a1 = Math.cos(orientation);
|
|
|
double a2 = Math.sin(orientation);
|
|
@@ -57,8 +63,8 @@ public class MatrixUtil {
|
|
|
|
|
|
/**
|
|
|
* 旧坐标通过矩阵转新坐标是本地坐标
|
|
|
- * @param position
|
|
|
- * @param e
|
|
|
+ * @param position 平面坐标
|
|
|
+ * @param e 矩阵参数
|
|
|
* @return
|
|
|
*/
|
|
|
private static double[] applyMatrix4(double[] position, double[] e) {
|