VertexCollection
public struct VertexCollection : RandomAccessCollection
A collection of the graph’s vertices.
-
The index into this collection.
Declaration
Swift
public typealias InfiniteGrid<Filter>.VertexCollection.Index = Int
-
The elements in this collection.
Declaration
Swift
public typealias InfiniteGrid<Filter>.VertexCollection.Element = Point2
-
The first valid index in
self
.Declaration
Swift
public var startIndex: Int { get }
-
Declaration
Swift
public var endIndex: Int { get }
-
Returns the
Point2
inself
corresponding toindex
.