Files
QuartZ-dump/GlobalShared/Util/KeenExtensions.cs
2024-12-29 21:15:58 +01:00

19 lines
548 B
C#

using Global.Shared.OcTree;
using VRageMath;
namespace Global.Shared.Util
{
public static class KeenExtensions
{
public static BoundingBoxD SetToContainer(this BoundingBoxD box, IContainer container)
{
box.Min.X = container.X;
box.Min.Y = container.Y;
box.Min.Z = container.Z;
box.Max.X = container.X + container.Width;
box.Max.Y = container.Y + container.Height;
box.Max.Z = container.Z + container.Depth;
return box;
}
}
}