testMovingCircleCircle

Test whether a given circle with center <code>(aX, aY)</code> and radius <code>aR</code> and travelled distance vector <code>(maX, maY)</code> intersects a given static circle with center <code>(bX, bY)</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 aX the x coordinate of the first circle's center @param aY the y coordinate of the first circle's center @param maX the x coordinate of the first circle's travelled distance vector @param maY the y coordinate of the first circle's travelled distance vector @param aR the radius of the first circle @param bX the x coordinate of the second circle's center @param bY the y coordinate 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

  1. bool testMovingCircleCircle(double aX, double aY, double maX, double maY, double aR, double bX, double bY, double bR)
    public static
    bool
    testMovingCircleCircle
    (
    double aX
    ,
    double aY
    ,
    double maX
    ,
    double maY
    ,
    double aR
    ,
    double bX
    ,
    double bY
    ,
    double bR
    )
  2. bool testMovingCircleCircle(Vector2d centerA, Vector2d moveA, double aR, Vector2d centerB, double bR)

Meta