testMovingCircleCircle
- bool testMovingCircleCircle(double aX, double aY, double maX, double maY, double aR, double bX, double bY, double bR)
- bool testMovingCircleCircle(Vector2d centerA, Vector2d moveA, double aR, Vector2d centerB, double bR)
static
bool
testMovingCircleCircle
intersection_d
static functionsstatic variables
Test whether a given circle with center <code>centerA</code> and radius <code>aR</code> and travelled distance vector <code>moveA</code> intersects a given static circle with center <code>centerB</code> and radius <code>bR</code>. <p> Note that the case of two moving circles can always be reduced to this case by expressing the moved distance of one of the circles relative to the other. <p> Reference: <a href="https://www.gamasutra.com/view/feature/131424/pool_hall_lessons_fast_accurate_.php?page=2">https://www.gamasutra.com</a>
@param centerA the coordinates of the first circle's center @param moveA the coordinates of the first circle's travelled distance vector @param aR the radius of the first circle @param centerB the coordinates of the second circle's center @param bR the radius of the second circle @return <code>true</code> if both circle intersect; <code>false</code> otherwise