Skip to content

Commit 26946a9

Browse files
committed
Fix
1 parent faca7cf commit 26946a9

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

Sources/S2Loop.swift

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -438,12 +438,14 @@ public struct S2Loop: S2Region, Comparable {
438438
// a general polygon. A future optimization could also take advantage of
439439
// the fact than an S2Cell is convex.
440440

441-
let cellBound = cell.rectBound
442-
if !bound.contains(other: cellBound) {
443-
return false
444-
}
445-
let cellLoop = S2Loop(cell: cell, bound: cellBound)
446-
return contains(cellLoop)
441+
// let cellBound = cell.rectBound
442+
// if !bound.contains(other: cellBound) {
443+
// return false
444+
// }
445+
// let cellLoop = S2Loop(cell: cell, bound: cellBound)
446+
// return contains(cellLoop)
447+
448+
return false
447449
}
448450

449451
/**
@@ -456,12 +458,14 @@ public struct S2Loop: S2Region, Comparable {
456458
// a general polygon. A future optimization could also take advantage of
457459
// the fact than an S2Cell is convex.
458460

459-
let cellBound = cell.rectBound
460-
if !bound.intersects(with: cellBound) {
461-
return false
462-
}
463-
let cellLoop = S2Loop(cell: cell, bound: cellBound)
464-
return cellLoop.intersects(with: self)
461+
// let cellBound = cell.rectBound
462+
// if !bound.intersects(with: cellBound) {
463+
// return false
464+
// }
465+
// let cellLoop = S2Loop(cell: cell, bound: cellBound)
466+
// return cellLoop.intersects(with: self)
467+
468+
return false
465469
}
466470

467471
}

0 commit comments

Comments
 (0)