Uses of Class
squidpony.squidgrid.SpatialMap

Packages that use SpatialMap 
Package Description
squidpony.squidgrid
Tools for working with data on a grid, including LOS and FOV; overlaps with geometry code in squidpony.squidmath .
  • Uses of SpatialMap in squidpony.squidgrid

    Methods in squidpony.squidgrid that return SpatialMap 
    Modifier and Type Method Description
    SpatialMap<I,​E> SpatialMap.circleSection​(int x, int y, int radius)
    Given the center position and maximum distance from the center, creates a new SpatialMap from this one that refers only to the subsection of this SpatialMap shared with the area within the given distance from the center, measured with Euclidean distance to produce a circle shape.
    SpatialMap<I,​E> SpatialMap.radiusSection​(int x, int y, Radius measurement, int distance)
    Given the center position, Radius to determine measurement, and maximum distance from the center, creates a new SpatialMap from this one that refers only to the subsection of this SpatialMap shared with the area within the given distance from the center as measured by measurement.
    SpatialMap<I,​E> SpatialMap.rectangleSection​(int x, int y, int width, int height)
    Given the size and position of a rectangular area, creates a new SpatialMap from this one that refers only to the subsection of this SpatialMap shared with the rectangular area.