Skip to content

Commit

Permalink
Expanding SpatialTree initializer to accept any sequence of Element type
Browse files Browse the repository at this point in the history
  • Loading branch information
LuizZak committed Jul 22, 2024
1 parent 15067f3 commit c27159a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public struct SpatialTree<Element: BoundableType>: SpatialTreeType where Element
/// - maxElementsPerLevelBeforeSplit: The maximum number of elements per
/// spatial tree subdivision before an attempt to subdivide it further is done.
public init(
_ geometryList: [Element],
_ geometryList: some Sequence<Element>,
maxSubdivisions: Int,
maxElementsPerLevelBeforeSplit: Int
) {
Expand Down

0 comments on commit c27159a

Please sign in to comment.