MATLAB Answers

why won't this compile; on Collection line? (math.geom2d, not matlab)

1 view (last 30 days)
Ralph Trimnell
Ralph Trimnell on 6 Jun 2014
Edited: Image Analyst on 6 Jun 2014
// Create and draw a circle
Circle2D circle1 = new Circle2D(80, 120, 40);
circle1.draw(g2);
// Create and draw a circle
Circle2D circle2 = new Circle2D(100, 120, 40);
circle2.draw(g2);
Collection<Point2D> intersects = circlesIntersections( circle1,circle2);
for (Point2D points:intersects)
point.draw(g2,2,g2,2);

  0 Comments

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by