Skip to content

Commit 3af111c

Browse files
authored
Merge pull request #586 from vuinguyen/QuadTree-Swift4
[Swift 4] Update QuadTree
2 parents 8ff4bcd + aa8081e commit 3af111c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

QuadTree/QuadTree.playground/Contents.swift

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// last checked with Xcode 9.0b5
2+
#if swift(>=4.0)
3+
print("Hello, Swift 4!")
4+
#endif
5+
16
import Foundation
27

38
let tree = QuadTree(rect: Rect(origin: Point(0, 0), size: Size(xLength: 10, yLength: 10)))

QuadTree/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ Both adding a point and searching can still take up to O(n) in the worst case, s
152152

153153
### See also
154154

155-
Displaying a large amount of objects in a MapView - a great use case for a Quadtree ([Thoughtbot Atricle](https://robots.thoughtbot.com/how-to-handle-large-amounts-of-data-on-maps))
155+
Displaying a large amount of objects in a MapView - a great use case for a Quadtree ([Thoughtbot Article](https://robots.thoughtbot.com/how-to-handle-large-amounts-of-data-on-maps))
156156

157157
More info on [Wiki](https://en.wikipedia.org/wiki/Quadtree)
158158

0 commit comments

Comments
 (0)