Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void step(Point2D mySize, Cell bestCell) {
- Point2D myPoints = null;
- Cell currentCell;
- for (int i = 0 ; i < mySize.getX() - 1 ; i++)
- {
- for (int j = 0 ; i < mySize.getY() - 1 ; j++)
- {
- currentCell.set(myPoints.setLocation(i, j)); //Override and implement set Point2D if one does not exist for this.
- currentCell.updateBest();
- if (currentCell.getBestSquareSize() > bestCell.getBestSquareSize())
- {
- bestCell.setBestSquareSize(currentCell.getBestSquareSize());
- }
- }
- updateCorners();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement