Пример #1
0
        public static BoundingSphere Convert(BEPUutilities.BoundingSphere boundingSphere)
        {
            BoundingSphere toReturn;

            Convert(ref boundingSphere.Center, out toReturn.Center);
            toReturn.Radius = boundingSphere.Radius;
            return(toReturn);
        }
Пример #2
0
 public static BoundingSphere ToSharp(this BEPUutilities.BoundingSphere bs)
 {
     return(new BoundingSphere(bs.Center.ToSharp(), bs.Radius));
 }
Пример #3
0
 public static void Convert(ref BoundingSphere boundingSphere, out BEPUutilities.BoundingSphere bepuBoundingSphere)
 {
     Convert(ref boundingSphere.Center, out bepuBoundingSphere.Center);
     bepuBoundingSphere.Radius = boundingSphere.Radius;
 }
Пример #4
0
 public static void Convert(ref BEPUutilities.BoundingSphere boundingSphere, out BoundingSphere xnaBoundingSphere)
 {
     Convert(ref boundingSphere.Center, out xnaBoundingSphere.Center);
     xnaBoundingSphere.Radius = (float)boundingSphere.Radius;
 }