Exemple #1
0
        public SphereD ToBoundingSphere()
        {
            var c      = CenterPos;
            var radius = Math.Sqrt(
                Math.Max(
                    Math.Max(
                        a.DistanceSqr(b),
                        a.DistanceSqr(c)
                        ),
                    b.DistanceSqr(c)
                    )
                );

            return(new SphereD(c, radius));
        }