BEPUutilities2.BoundingBox.CreateFromSphere C# (CSharp) 메소드

CreateFromSphere() 개인적인 메소드

private CreateFromSphere ( BoundingSphere &boundingSphere, BoundingBox &boundingBox ) : void
boundingSphere BoundingSphere
boundingBox BoundingBox
리턴 void
        public static void CreateFromSphere(ref BoundingSphere boundingSphere, out BoundingBox boundingBox)
        {
            var radius = new Vector3(boundingSphere.Radius);
            boundingBox.Min = boundingSphere.Center - radius;
            boundingBox.Max = boundingSphere.Center + radius;
        }