FrustumIntersection.testSphere

Test whether the given sphere is partly or completely within or outside of the frustum defined by <code>this</code> frustum culler. <p> The algorithm implemented by this method is conservative. This means that in certain circumstances a <i>false positive</i> can occur, when the method returns <code>true</code> for spheres that do not intersect the frustum. See <a href="http://iquilezles.org/www/articles/frustumcorrect/frustumcorrect.htm">iquilezles.org</a> for an examination of this problem.

@param x the x-coordinate of the sphere's center @param y the y-coordinate of the sphere's center @param z the z-coordinate of the sphere's center @param r the sphere's radius @return <code>true</code> if the given sphere is partly or completely inside the frustum; <code>false</code> otherwise

  1. bool testSphere(Vector3d center, double radius)
  2. bool testSphere(double x, double y, double z, double r)
    struct FrustumIntersection
    bool
    testSphere
    (
    double x
    ,
    double y
    ,
    double z
    ,
    double r
    )

Meta