testAarCircle

Test whether the axis-aligned rectangle with minimum corner <code>(minX, minY)</code> and maximum corner <code>(maxX, maxY)</code> intersects the circle with the given center <code>(centerX, centerY)</code> and square radius <code>radiusSquared</code>. <p> Reference: <a href="http://stackoverflow.com/questions/4578967/cube-sphere-intersection-test#answer-4579069">http://stackoverflow.com</a>

@param minX the x coordinate of the minimum corner of the axis-aligned rectangle @param minY the y coordinate of the minimum corner of the axis-aligned rectangle @param maxX the x coordinate of the maximum corner of the axis-aligned rectangle @param maxY the y coordinate of the maximum corner of the axis-aligned rectangle @param centerX the x coordinate of the circle's center @param centerY the y coordinate of the circle's center @param radiusSquared the square of the circle's radius @return <code>true</code> iff the axis-aligned rectangle intersects the circle; <code>false</code> otherwise

  1. bool testAarCircle(double minX, double minY, double maxX, double maxY, double centerX, double centerY, double radiusSquared)
    public static
    bool
    testAarCircle
    (
    double minX
    ,
    double minY
    ,
    double maxX
    ,
    double maxY
    ,
    double centerX
    ,
    double centerY
    ,)
  2. bool testAarCircle(Vector2d min, Vector2d max, Vector2d center, double radiusSquared)

Meta