public static void CreateFromCenterExtents(ref IntVector3 center, ref IntVector3 extents, out IntBoundingBox result) { result.Min = new IntVector3 { X = center.X - extents.X, Y = center.Y - extents.Y, Z = center.Z - extents.Z, }; result.Size = new IntVector3 { X = extents.X * 2 + 1, Y = extents.Y * 2 + 1, Z = extents.Z * 2 + 1 }; }