testAabSphere

Test whether the axis-aligned box with minimum corner <code>(minX, minY, minZ)</code> and maximum corner <code>(maxX, maxY, maxZ)</code> intersects the sphere with the given center <code>(centerX, centerY, centerZ)</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 minX the x coordinate of the minimum corner of the axis-aligned box @param minY the y coordinate of the minimum corner of the axis-aligned box @param minZ the z coordinate of the minimum corner of the axis-aligned box @param maxX the x coordinate of the maximum corner of the axis-aligned box @param maxY the y coordinate of the maximum corner of the axis-aligned box @param maxZ the z coordinate of the maximum corner of the axis-aligned box @param centerX the x coordinate of the sphere's center @param centerY the y coordinate of the sphere's center @param centerZ the z coordinate of the sphere's center @param radiusSquared the square of the sphere's radius @return <code>true</code> iff the axis-aligned box intersects the sphere; <code>false</code> otherwise

  1. bool testAabSphere(double minX, double minY, double minZ, double maxX, double maxY, double maxZ, double centerX, double centerY, double centerZ, double radiusSquared)
    static
    bool
    testAabSphere
    (
    double minX
    ,
    double minY
    ,
    double minZ
    ,
    double maxX
    ,
    double maxY
    ,
    double maxZ
    ,
    double centerX
    ,
    double centerY
    ,
    double centerZ
    ,)
  2. bool testAabSphere(Vector3d min, Vector3d max, Vector3d center, double radiusSquared)

Meta