testAarLine

Test whether the axis-aligned rectangle with minimum corner <code>(minX, minY)</code> and maximum corner <code>(maxX, maxY)</code> intersects the line with the general equation <i>a*x + b*y + c = 0</i>. <p> Reference: <a href="http://www.lighthouse3d.com/tutorials/view-frustum-culling/geometric-approach-testing-boxes-ii/">http://www.lighthouse3d.com</a> ("Geometric Approach - Testing Boxes II")

@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 a the x factor in the line equation @param b the y factor in the line equation @param c the constant in the plane equation @return <code>true</code> iff the axis-aligned rectangle intersects the line; <code>false</code> otherwise

  1. bool testAarLine(double minX, double minY, double maxX, double maxY, double a, double b, double c)
    static
    bool
    testAarLine
    (
    double minX
    ,
    double minY
    ,
    double maxX
    ,
    double maxY
    ,
    double a
    ,
    double b
    ,
    double c
    )
  2. bool testAarLine(Vector2d min, Vector2d max, double a, double b, double c)
  3. bool testAarLine(double minX, double minY, double maxX, double maxY, double x0, double y0, double x1, double y1)

Meta