From 0f9b54a934b45c75909185e0716f8a5ff10d734c Mon Sep 17 00:00:00 2001 From: Luis Michaelis Date: Sat, 21 Sep 2024 08:49:05 +0200 Subject: [PATCH] docs: add documentation for `AxisAlignedBoundingBox` --- ZenKit/Boxes.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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; }