Exemple #1
0
 /// <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);
Exemple #2
0
        /// <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;
        }
Exemple #3
0
 /// <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);