public abstract class BorderLocator
extends Object
| Constructor and Description |
|---|
BorderLocator() |
| Modifier and Type | Method and Description |
|---|---|
protected float[] |
calculateHorizontalDistribution(boolean[][] spaceMatrix)
Calculates horizontal distribution.
|
protected float[] |
calculateVerticalDistribution(boolean[][] spaceMatrix)
Calculates vertical distribution.
|
abstract Rectangle |
locateBorder(boolean[][] spaceMatrix,
int chunkHeight,
int chunkWidth)
Locates the border.
|
protected float[] calculateHorizontalDistribution(boolean[][] spaceMatrix)
spaceMatrix - the space matrixprotected float[] calculateVerticalDistribution(boolean[][] spaceMatrix)
spaceMatrix - the space matrixpublic abstract Rectangle locateBorder(boolean[][] spaceMatrix,
int chunkHeight,
int chunkWidth)
spaceMatrix - the space matrixchunkHeight - the chunk heightchunkWidth - the chunk widthCopyright © 2010-2020 Toolsverse. All Rights Reserved.