HelixToolkit.Wpf.BoundingSphere.Intersects C# (CSharp) Method

Intersects() public method

Determines if the sphere intersects with the specified sphere.
public Intersects ( BoundingSphere sphere ) : bool
sphere BoundingSphere /// The sphere to check against. ///
return bool
        public bool Intersects(BoundingSphere sphere)
        {
            double d2 = this.center.DistanceToSquared(sphere.center);
            return (this.radius * this.radius) + (2.0 * this.radius * sphere.radius) + (sphere.radius * sphere.radius) > d2;
        }