diff --git a/ZenKit/Boxes.cs b/ZenKit/Boxes.cs index 87801c3..5030228 100644 --- a/ZenKit/Boxes.cs +++ b/ZenKit/Boxes.cs @@ -6,11 +6,28 @@ namespace ZenKit { + /// + /// Represents an axis-aligned bounding box. + /// [Serializable] [StructLayout(LayoutKind.Sequential)] public struct AxisAlignedBoundingBox { + /// + /// Constructs a new axis-aligned bounding box from a given minimum and maximum coordinate. + /// + /// The coordinate of the minimum corner of the bounding box. + /// The coordinate of the maximum corner of the bounding box. + public AxisAlignedBoundingBox(Vector3 min, Vector3 max) + { + Min = min; + Max = max; + } + + /// The coordinate of the minimum corner of the bounding box. public Vector3 Min; + + /// The coordinate of the maximum corner of the bounding box. public Vector3 Max; }