Added ToString to Scale

This commit is contained in:
DarthAffe committed 2023-10-31 21:51:40 +01:00
1 parent d454f94b73
commit 883d6cbea4
1 file changed
+6
+6
View File
@@ -50,6 +50,12 @@ public readonly struct Scale : IEquatable<Scale>
#region Methods #region Methods
/// <summary>
/// Converts the <see cref="Horizontal"/> and <see cref="Vertical"/> value of this <see cref="Scale"/> to a human-readable string.
/// </summary>
/// <returns>A string that contains the <see cref="Horizontal"/> and <see cref="Vertical"/> value of this <see cref="Scale"/>. For example "[Horizontal: 1, Vertical: 0.5]".</returns>
public override string ToString() => $"[Horizontal: {Horizontal}, Vertical: {Vertical}]\"";
/// <summary> /// <summary>
/// Tests whether the specified <see cref="Scale"/> is equivalent to this <see cref="Scale" />. /// Tests whether the specified <see cref="Scale"/> is equivalent to this <see cref="Scale" />.
/// </summary> /// </summary>