package uk.ac.liv.comp285.cw1.test;
import uk.ac.liv.comp285.cw1.CanvasFrame;
import uk.ac.liv.comp285.cw1.shapes.Circle;
import uk.ac.liv.comp285.cw1.shapes.Point;
import uk.ac.liv.comp285.cw1.shapes.Rectangle;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
CanvasFrame.showShapes();
System.out.print(“Checking out shapes”);
Rectangle rectangle=new Rectangle(400,400,200,200);
rectangle.setRotation(new Point(0,0),0.1);
Circle circle=new Circle(190.1f,200,80);
System.out.println(“Collides is “+rectangle.doesCollide(circle));
int x=-50;
int y=50;
double tan=y/x;
System.out.println(“Arc tan is “+Math.atan(tan)*(360/(Math.PI*2)));
}
}