Fixed benchmark error

Fixed error for forgeting to change benchark function from IsIntersect to Intersects.
This commit is contained in:
Tskken 2019-11-05 16:16:29 -07:00
parent 706becb764
commit 837a4efa80
1 changed files with 1 additions and 1 deletions

View File

@ -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
}