/// <summary> /// This method must be implemented. /// It checks whether this bounding volume intersects with the given bounding volume. /// </summary> /// <param name="volume">The volume to check with.</param> /// <returns>True if the bounding volumes intersect, false otherwise.</returns> public abstract bool Intersects(BoundingVolume volume);
/// <summary> /// It checks whether this bounding box intersects with the given bounding volume. /// </summary> /// <param name="volume">The volume to check with.</param> /// <returns>True if the bounding volumes intersect, false otherwise.</returns> public override bool Intersects(BoundingVolume volume) { // Check with other bounding volumes. if (volume is BoundingBox) { // Intersection code here. } // By default. return false; }