Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.81 KB | None | 0 0
  1. private void step(Point2D mySize, Cell bestCell) {
  2.        
  3.         Point2D myPoints = null;
  4.         Cell currentCell;
  5.  
  6.          for (int i = 0 ; i < mySize.getX() - 1 ; i++)
  7.              
  8.                 {
  9.                            
  10.                     for (int j = 0 ; i < mySize.getY() - 1 ; j++)
  11.                    
  12.                     {
  13.                    
  14.                    
  15.                         currentCell.set(myPoints.setLocation(i, j)); //Override and implement set Point2D if one does not exist for this.
  16.                    
  17.                         currentCell.updateBest();
  18.                      
  19.                         if (currentCell.getBestSquareSize() > bestCell.getBestSquareSize())
  20.                          
  21.                                 {
  22.                        
  23.                                 bestCell.setBestSquareSize(currentCell.getBestSquareSize());
  24.                          
  25.                                 }
  26.                                                        
  27.                     }
  28.                    
  29.                     updateCorners();
  30.                
  31.          }
  32.  
  33.            
  34.  
  35.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement