Skip to content

Instantly share code, notes, and snippets.

@ilyeshammadi
Created April 22, 2015 20:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ilyeshammadi/c4f8e59ffad04e4e6041 to your computer and use it in GitHub Desktop.
Save ilyeshammadi/c4f8e59ffad04e4e6041 to your computer and use it in GitHub Desktop.
package com.company;
import java.awt.*;
public class Main {
public static void main(String[] args) {
// write your code here
Cercle c1 = new Cercle(new Point(1, 3), 1);
Cercle c2 = new Cercle(new Point(3, 3), 1);
Cercle c3 = new Cercle(c2);
System.out.println("Colision entre c1 et c2 : " + c1.isColision(c2));
System.out.println("Colision entre c2 et c3 : " + Cercle.isColision(c2, c3));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment