Fixed benchmark error
Fixed error for forgeting to change benchark function from IsIntersect to Intersects.
This commit is contained in:
parent
706becb764
commit
837a4efa80
|
@ -1574,7 +1574,7 @@ func BenchmarkRect_IsIntersect(b *testing.B) {
|
|||
inter := pixel.R(11, 11, 15, 15)
|
||||
|
||||
for i := 0; i < b.N; i++ {
|
||||
if root.IsIntersect(inter) {
|
||||
if root.Intersects(inter) {
|
||||
// do a thing
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue