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)
public static
bool
testAarLine
- bool testAarLine(double minX, double minY, double maxX, double maxY, double x0, double y0, double x1, double y1)
doml intersection_d
static functionsstatic variables
Test whether the axis-aligned rectangle with minimum corner <code>min</code> and maximum corner <code>max</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 min the minimum corner of the axis-aligned rectangle @param max 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 line equation @return <code>true</code> iff the axis-aligned rectangle intersects the line; <code>false</code> otherwise