VertexEdgeCollection
public struct VertexEdgeCollection : Collection
The collection of edges from a single vertex in an infinite grid.
-
The index into the collection.
Declaration
Swift
public typealias Index = GridDirection.AllCases.Index -
The elements of the collection.
Declaration
Swift
public typealias Element = GridEdge -
The first valid index in
self.Declaration
Swift
public var startIndex: Index { get } -
One past the last valid index in
self.Declaration
Swift
public var endIndex: Index { get } -
Computes the next index in
self. -
Accesses the grid edge at
index.
View on GitHub
VertexEdgeCollection Structure Reference