コード例 #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);
コード例 #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;
        }
コード例 #3
0
ファイル: BoundingVolume.cs プロジェクト: moriri/bullet
 /// <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);