public interface ImmutableZone extends Zone
Zone.Helper, Zone.Skeleton
Modifier and Type | Method and Description |
---|---|
Zone |
expand(int distance)
Expands the area of this Zone in the four cardinal directions, performing the expansion consecutively
distance times. |
Zone |
expand8way(int distance)
Expands the area of 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. Does not modify this Zone; returns a new Zone with the requested changes.distance
- the amount to expand outward using Manhattan distance (diamond shape)Zone expand8way(int distance)
distance
times. Does not modify this Zone; returns a new Zone with the requested changes.distance
- the amount to expand outward using Chebyshev distance (square shape)Copyright © Eben Howard 2012–2022. All rights reserved.