Parameters
| Name | Description | Default |
|---|---|---|
a | First circle. | — |
b | Second circle. | — |
Returns
Whether the squared center distance is below the squared-radius threshold.
Function
intersectCircle(a: BoundingCircle, b: BoundingCircle): booleanReturns whether two BoundingCircle values overlap using squared
distance.
The helper returns true when the squared distance between the circle
centers is strictly less than a.r * a.r + b.r * b.r. It returns false
when those values are equal, so the exact threshold is not treated as an
overlap. This threshold is the sum of the squared radii, not the square of
the sum of the radii. No square root is calculated, neither circle is
mutated, and the comparison uses the radii exactly as stored.