Commits

Karsten Schmidt  committed 89bf41a

fixing NullPointerException in CircleIntersector (isec data was never initialized), adding getter/setter for circle instance

  • Participants
  • Parent commits e26c809

Comments (0)

Files changed (1)

File src.core/toxi/geom/CircleIntersector.java

  */
 public class CircleIntersector implements Intersector2D {
 
-    private IsectData2D isec;
+    private IsectData2D isec = new IsectData2D();
     private Circle circle;
 
     public CircleIntersector(Circle circle) {
         this.circle = circle;
     }
 
+    public Circle getCircle() {
+        return circle;
+    }
+
     public IsectData2D getIntersectionData() {
         return isec;
     }
         }
         return isec.isIntersection;
     }
+
+    public void setCircle(Circle circle) {
+        this.circle = circle;
+    }
 }