Package squidpony.squidgrid.mapping
Interface Rectangle
- All Superinterfaces:
Iterable<Coord>,Serializable,Zone
- All Known Implementing Classes:
Rectangle.Impl
public interface Rectangle extends Zone
Rectangles in 2D grids. Checkout
Rectangle.Utils for utility methods.- Author:
- smelC
- See Also:
How to find rectangles in a dungeon
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classRectangle.Implstatic classRectangle.UtilsUtilities pertaining toRectangleNested classes/interfaces inherited from interface squidpony.squidgrid.zone.Zone
Zone.Helper, Zone.Skeleton -
Method Summary
Modifier and Type Method Description CoordgetBottomLeft()intgetHeight()intgetWidth()Methods inherited from interface squidpony.squidgrid.zone.Zone
contains, contains, contains, extend, getAll, getCenter, getDiagonal, getExternalBorder, getInternalBorder, intersectsWith, isEmpty, size, translate, translate, xBound, yBound
-
Method Details
-
getBottomLeft
- Returns:
- The bottom left coordinate of the room.
-
getWidth
int getWidth()- Specified by:
getWidthin interfaceZone- Returns:
- The room's width (from
getBottomLeft()). It is greater or equal than 0.
-
getHeight
int getHeight()- Specified by:
getHeightin interfaceZone- Returns:
- The room's height (from
getBottomLeft()). It is greater or equal than 0.
-