testAabSphere
- bool testAabSphere(double minX, double minY, double minZ, double maxX, double maxY, double maxZ, double centerX, double centerY, double centerZ, double radiusSquared)
- bool testAabSphere(Vector3d min, Vector3d max, Vector3d center, double radiusSquared)
public static
bool
testAabSphere
doml intersection_d
static functionsstatic variables
Test whether the axis-aligned box with minimum corner <code>min</code> and maximum corner <code>max</code> intersects the sphere 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 box @param max the maximum corner of the axis-aligned box @param center the sphere's center @param radiusSquared the squared of the sphere's radius @return <code>true</code> iff the axis-aligned box intersects the sphere; <code>false</code> otherwise