testAarCircle

Test whether the axis-aligned rectangle with minimum corner <code>min</code> and maximum corner <code>max</code> intersects the circle with the given <code>center</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 min the minimum corner of the axis-aligned rectangle @param max the maximum corner of the axis-aligned rectangle @param center the circle's center @param radiusSquared the squared 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)
  2. bool testAarCircle(Vector2d min, Vector2d max, Vector2d center, double radiusSquared)
    static
    bool
    testAarCircle

Meta