(shapeA B2ShapeInterface, indexA int, shapeB B2ShapeInterface, indexB int, xfA B2Transform, xfB B2Transform)
| 482 | } |
| 483 | |
| 484 | func B2TestOverlapShapes(shapeA B2ShapeInterface, indexA int, shapeB B2ShapeInterface, indexB int, xfA B2Transform, xfB B2Transform) bool { |
| 485 | input := MakeB2DistanceInput() |
| 486 | input.ProxyA.Set(shapeA, indexA) |
| 487 | input.ProxyB.Set(shapeB, indexB) |
| 488 | input.TransformA = xfA |
| 489 | input.TransformB = xfB |
| 490 | input.UseRadii = true |
| 491 | |
| 492 | cache := MakeB2SimplexCache() |
| 493 | cache.Count = 0 |
| 494 | |
| 495 | output := MakeB2DistanceOutput() |
| 496 | |
| 497 | B2Distance(&output, &cache, &input) |
| 498 | |
| 499 | return output.Distance < 10.0*B2_epsilon |
| 500 | } |
no test coverage detected