Infinite Grid Support

  • A point in 2 dimensional grid.

    See more

    Declaration

    Swift

    public struct Point2 : Equatable, Hashable, Comparable
  • Available movement directions on the grid.

    See more

    Declaration

    Swift

    public enum GridDirection : CaseIterable, Equatable, Hashable, Comparable
  • The name of an edge in self.

    See more

    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 a GridFilter 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.
    See more

    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 more

    Declaration

    Swift

    public struct ManhattenGridFilter : GridFilter, DefaultInitializable
  • Bounds an infinite grid to a finite, fixed rectangle.

    See more

    Declaration

    Swift

    public struct RectangularGridFilter : GridFilter