ArrayList<Coordinate> findPerpendicularLine(float x1, float y1, float x2, float y2, float weight){
	   ArrayList <Coordinate> lineCoords = new ArrayList <Coordinate>();
	   float dx = x1-x2;
       float dy = y1-y2;
       float dist = (float) Math.sqrt(dx*dx + dy*dy);
       
       if (dist==0) return null; //Avoid divide by zero

        dx = dx/dist;
        dy = dy/dist;
        lineCoords.add(new Coordinate(x1 + weight*dy, y1 - weight*dx));
        lineCoords.add(new Coordinate(x1 - weight*dy, y1 + weight*dx));
        return lineCoords;
   }