Interface CoordShape
- All Known Implementing Classes:
CoordArea, CoordPolygon
public interface CoordShape
-
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines whether the given coordinate lies inside this shape.getBoundary(boolean outer) Returns all coordinates on the boundary (perimeter) of the shape.default CoordReturns all coordinates contained within this shape.intdefault CoordReturns the set of vertices defining this shape.
-
Method Details
-
contains
Determines whether the given coordinate lies inside this shape.- Parameters:
node- the node to test- Returns:
trueif the shape contains the coordinate
-
getVertices
-
getBoundary
Returns all coordinates on the boundary (perimeter) of the shape.- Parameters:
outer- iftrue, returns the ring of tiles immediately surrounding the shape;
iffalse, returns only the tiles forming the perimeter on the shape itself.- Returns:
- a set of coordinates representing the boundary
-
getCoords
-
getFloorLevel
int getFloorLevel() -
getCenter
-
getRandomCoord
-