public class SimpleBorderLocator extends BorderLocator
Constructor and Description |
---|
SimpleBorderLocator() |
Modifier and Type | Method and Description |
---|---|
Rectangle |
locateBorder(boolean[][] spaceMatrix,
int chunkHeight,
int chunkWidth)
Locates the border.
|
calculateHorizontalDistribution, calculateVerticalDistribution
public Rectangle locateBorder(boolean[][] spaceMatrix, int chunkHeight, int chunkWidth)
BorderLocator
locateBorder
in class BorderLocator
spaceMatrix
- the space matrixchunkHeight
- the chunk heightchunkWidth
- the chunk widthCopyright © 2010-2020 Toolsverse. All Rights Reserved.