testAarLine
- bool testAarLine(double minX, double minY, double maxX, double maxY, double a, double b, double c)
- bool testAarLine(Vector2d min, Vector2d max, double a, double b, double c)
- bool testAarLine(double minX, double minY, double maxX, double maxY, double x0, double y0, double x1, double y1)
intersection_d
static functionsstatic variables
Test whether the axis-aligned rectangle with minimum corner <code>(minX, minY)</code> and maximum corner <code>(maxX, maxY)</code> intersects the line defined by the two points <code>(x0, y0)</code> and <code>(x1, y1)</code>. <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 x0 the x coordinate of the first point on the line @param y0 the y coordinate of the first point on the line @param x1 the x coordinate of the second point on the line @param y1 the y coordinate of the second point on the line @return <code>true</code> iff the axis-aligned rectangle intersects the line; <code>false</code> otherwise