Infinite Grid Support
-
A point in 2 dimensional grid.
See moreDeclaration
Swift
public struct Point2 : Equatable, Hashable, Comparable
-
Available movement directions on the grid.
See moreDeclaration
Swift
public enum GridDirection : CaseIterable, Equatable, Hashable, Comparable
-
The name of an edge in
See moreself
.Declaration
Swift
public struct GridEdge : Equatable, Hashable, Comparable
-
Allows selective removing parts of an InfiniteGrid.
Say a robot is planning movement within a room. There are some furnature items that the robot cannot pass through. An
InfiniteGrid
can be parameterized by aGridFilter
that excludes the furnature and all vertices beyond the room, yielding a representation of the room that can be searched with graph search algorithms such as A-star search.See also
InfiniteGrid
.Declaration
Swift
public protocol GridFilter
-
Performs no filtering on the complete grid, resulting in an infinite grid with no edges or vertices removed.
Declaration
Swift
public typealias CompleteGridFilter = Empty
-
Filters a grid to only allow the cardinal dimensions.
See moreDeclaration
Swift
public struct ManhattenGridFilter : GridFilter, DefaultInitializable
-
Bounds an infinite grid to a finite, fixed rectangle.
See moreDeclaration
Swift
public struct RectangularGridFilter : GridFilter