testSphereSphere

Test whether the one sphere with center <code>centerA</code> and square radius <code>radiusSquaredA</code> intersects the other sphere with center <code>centerB</code> and square radius <code>radiusSquaredB</code>. <p> Reference: <a href="http://gamedev.stackexchange.com/questions/75756/sphere-sphere-intersection-and-circle-sphere-intersection">http://gamedev.stackexchange.com</a>

@param centerA the first sphere's center @param radiusSquaredA the square of the first sphere's radius @param centerB the second sphere's center @param radiusSquaredB the square of the second sphere's radius @return <code>true</code> iff both spheres intersect; <code>false</code> otherwise

  1. bool testSphereSphere(double aX, double aY, double aZ, double radiusSquaredA, double bX, double bY, double bZ, double radiusSquaredB)
  2. bool testSphereSphere(Vector3d centerA, double radiusSquaredA, Vector3d centerB, double radiusSquaredB)
    static
    bool
    testSphereSphere

Meta