示例#1
0
        /// <summary>
        /// Gets the bouding sphere of this bouding box.
        /// </summary>
        /// <param name="boundingBox"></param>
        /// <returns>A bounding sphere.</returns>
        public static BoundingSphere ToBoundingSphere(this BoundingBox boundingBox)
        {
            var boundingSphere = new BoundingSphere(boundingBox.GetCenter(), boundingBox.GetMaxSize());

            return(boundingSphere);
        }