David Benson [draw.io] 4 лет назад
Родитель
Сommit
90e52dd6a8
1 измененных файлов с 0 добавлено и 22 удалено
  1. 0 22
      src/main/java/com/mxgraph/online/Utils.java

+ 0 - 22
src/main/java/com/mxgraph/online/Utils.java

@@ -17,9 +17,6 @@ import java.util.zip.Deflater;
 import java.util.zip.Inflater;
 import java.util.zip.InflaterInputStream;
 
-import com.mxgraph.model.mxGeometry;
-import com.mxgraph.util.mxPoint;
-
 /**
  * 
  * String/byte array encoding/manipulation utilities
@@ -216,25 +213,6 @@ public class Utils
 		}
 	}
 
-	/**
-	 * Rotates the given geometry (in place) by the given rotation (in degrees).
-	 */
-	public static void rotatedGeometry(mxGeometry geo, double rotation,
-			double cx, double cy)
-	{
-		rotation = Math.toRadians(rotation);
-		double cos = Math.cos(rotation), sin = Math.sin(rotation);
-
-		double x = geo.getCenterX() - cx;
-		double y = geo.getCenterY() - cy;
-
-		double x1 = x * cos - y * sin;
-		double y1 = y * cos + x * sin;
-
-		geo.setX(Math.round(x1 + cx - geo.getWidth() / 2));
-		geo.setY(Math.round(y1 + cy - geo.getHeight() / 2));
-	}
-
 	/**
 	 * Checks the file type of an input stream and returns the
 	 * bytes that have been read (because URL connections to not