@@ -53,6 +53,11 @@ public abstract class DrawEngine {
return image;
}
+ public Point2D.Double getCenter(){
+ Point2D.Double center = new Point2D.Double(x + this.image.getWidth(null) / 2, y + this.image.getHeight(null)/2);
+ return center;
+ }
+
//getters and setters down here
public double getX() {
return x;