From d0ab442f7f35cbe1c946b12e314002d3bf7ace6c Mon Sep 17 00:00:00 2001 From: Syntriax Date: Sun, 8 Dec 2024 16:18:49 +0300 Subject: [PATCH] chore: AABB ToString() Method --- Engine.Physics2D/Primitives/AABB.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Engine.Physics2D/Primitives/AABB.cs b/Engine.Physics2D/Primitives/AABB.cs index f27df37..6d1191b 100644 --- a/Engine.Physics2D/Primitives/AABB.cs +++ b/Engine.Physics2D/Primitives/AABB.cs @@ -65,6 +65,12 @@ public readonly struct AABB(Vector2D lowerBoundary, Vector2D upperBoundary) return new(lowerBoundary, upperBoundary); } + /// + /// Converts the to its string representation. + /// + /// A string representation of the . + public override string ToString() => $"{nameof(AABB)}({LowerBoundary}, {UpperBoundary})"; + /// /// Checks if two s are approximately equal. ///