public interface MutableZone extends Zone
Zone.Helper, Zone.Skeleton
Modifier and Type | Method and Description |
---|---|
Zone |
expand(int distance)
Expands this Zone in the four cardinal directions, performing the expansion consecutively
distance times. |
Zone |
expand8way(int distance)
Expands this Zone in the four cardinal and four diagonal directions, performing the expansion consecutively
distance times. |
contains, contains, contains, extend, getAll, getCenter, getDiagonal, getExternalBorder, getHeight, getInternalBorder, getWidth, intersectsWith, isEmpty, size, translate, translate, xBound, yBound
Zone expand(int distance)
distance
times.
Modified this Zone in-place and returns it for chaining.distance
- the amount to expand outward using Manhattan distance (diamond shape)Zone expand8way(int distance)
distance
times. Modified this Zone in-place and returns it for chaining.distance
- the amount to expand outward using Chebyshev distance (square shape)Copyright © Eben Howard 2012–2022. All rights reserved.