public ChineseLine(int x1, int x2, int y1, int y2) {
        this.x1 = x1;//sets the value of the first  x coordinate in the line
        this.x2 = x2;//sets the value of the second x coordinate in the line
        this.y1 = y1;//sets the value of the first  y coordinate in the line
        this.y2 = y2;//sets the value of the second y coordinate in the line
        if((x2-x1) == 0)//if the line is vertical
            degrees = 90;//the line is going up or down 90 degrees
        else//otherwise
            degrees = Math.toDegrees(Math.abs(Math.atan((y2-y1)/(x2-x1))));
                //the degrees is equal to the arctangent(Δy/Δx), but remember,
                //this depends on which quadrant we are in.
                //we figure out which quadrant we are in by comparing the x
                //and y values
        totaldegrees = degrees;//setting the initial degrees
        if(x2>x1&&y2>y1){//if the x and y values get larger
            quadrant = FIRST_QUADRANT;//we are in the first quadrant
            //we adjust the total angle by adding nothing
        }
        if(x2<x1&&y2>y1){
                //if the x values get smaller and y the values get larger
            quadrant = SECOND_QUADRANT;//we are in the second quadrant
            totaldegrees+=90;//we adjust the total angle by adding 90 degrees
        }
        if(x2<x1&&y2<y1){//if the x and y values get smaller
            quadrant = THIRD_QUADRANT;//we are in the third quadrant
            totaldegrees+=180;//we adjust the total angle by adding 180 degrees
        }
        if(x2>x1&&y2<y1){
                //if the x values get larger and y the values get smaller
            quadrant = FOURTH_QUADRANT;//we are in the fourh quadrant
            totaldegrees+=270;//we adjust the total angle by adding 270 degrees
        }
        magnitude = Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));
            //sets the magnitude o the line by using the distance formula
    }